Summary
It looks like this case snuck though the latest f-string changes. playground this code is valid
But gets made invalid by the formatter
(Or in the case of a multiline string, has behavior change)
Version
ruff 0.12.0 (87f0feb 2025-06-17) + playground