If you are doing something heavy on regular expression, then you are much better off with re2 from google.
https://swtch.com/~rsc/regexp/regexp1.html
Also re is running in python, whereas re2 is written in C (with python language bindings)
I wonder, why python didn't ditch the built-in re package in favor of re2... That might be due to some compatibility issues, but i don't know anything specific.