I was experimenting with \'\\\' characters, using \'\\a\\b\\c...\' just to enumerate for myself which characters Python interprets as control characters, and to what. Here\
\x is missing the hex character you want to match against: \xnn -> \x1B