The regex and the program below work fine but 2 lines are getting highlighted with hot pink as if they were incorrect.
import re
def myfunc(text):
number = '[0-9]'
regex1 = fr"[\[]{number}[\]]"
regex2 = fr"[\{{]{number}[\}}]"
text = re.sub(regex1, 'HERE1', text)
text = re.sub(regex2, 'HERE2', text)
return text
print(myfunc('test [3] test {3}'))
I have simplified the program above to show the issue and remove the noise. So it might look like a ridiculous way of doing that, but it's just because I have removed all the context.

Is there a way I can disable this hot pink in the mean time?
UPDATE:
It also affects subsequent function definitions:

LGTM with master branch. st3 branch untested.
Cool, thanks for checking. So, does that mean that it's just a matter of time until there's a new release?
The st3 branch seems good on my test. So you can follow the step in README to use the "latest" syntax definition. Or if you know the fact that syntaxes are just built-in plugins/packages and you know how to override a plugin file.
worked perfectly! thank you!
Most helpful comment
LGTM with
masterbranch.st3branch untested.