Since you are working with file paths, I would avoid f-strings and rather use a library geared for path manipulation. For example pathlib would allow you to do:
The simplest way I've found of doing this is to use implicit line continuation to split my strings up into component parts, i.e. separate out 'r' and 'f' strings inside parenthases. Here's an example matplotlib title with 'normal', 'formatted', and 'raw' string literals (read more here):