1This is specified in the PEP for f-strings:
2Backslashes may not appear inside the expression portions of f-strings, [...]
3
4One option is assinging '\n' to a name and then .join on that inside the f-string; that is, without using a literal:
5Example:
6names = ['Adam', 'Bob', 'Cyril']
7nl = '\n'
8text = f"Winners are:{nl}{nl.join(names)}"
9print(text)
10