Formatted expressions in f-strings are regular Python code. They should be formatted as such. Example done by MagicPython (opening `f"` highlighted by me): 