I'm trying to build a regex with a raw f-string in a Sublime Text 3.2.2 plugin:
operatorSymbols = "==|!="
print(fr'\s*({operatorSymbols})\s*')
Desired output:
\s*(==|!=)\s*
I get the error:
print(fr'\s*({operatorSymbols})\s*')
^
SyntaxError: invalid syntax
What is wrong with it?