<regex> limitation, no escapes. \4 is a backreference for opening
sequence
Python string is a prefix followed by quote (or three quotes) and a
sequence of symbols until the same quote construction.
stringprefix ::= "u" | "r" | "ur" | "U" | "R" | "UR" | "Ur" | "uR"