---input---
f'*{f"{n=}":30}*'

---tokens---
'f'           Literal.String.Affix
"'"           Literal.String.Single
'*'           Literal.String.Single
'{'           Literal.String.Interpol
'f'           Literal.String.Affix
'"'           Literal.String.Double
'{'           Literal.String.Interpol
'n'           Name
'=}'          Literal.String.Interpol
'"'           Literal.String.Double
':'           Literal.String.Interpol
'30'          Literal.String.Single
'}'           Literal.String.Interpol
'*'           Literal.String.Single
"'"           Literal.String.Single
'\n'          Text.Whitespace
