In the documentation for the regex module, the str and pattern arguments in the examples for re.match, re.gfind, re.find, re.gsplit and re.split seems to be switched up.
While debugging, I copied the example as is for re.match and wondered why it didn't work lol.