Text this: Engineering an artificial flavoprotein magnetosensor