on older python versions, the following code is a syntax error:
which is why the formatter does not convert the following f string to use double quotes:
but on python 3.12, it's allowed, so the formatter should always convert them to double quotes. playground