There are more answers to using re2 on this question. There is another package that is more up to date for Python 3, https://pypi.org/project/google-re2/. I simply pip installed it and it works. It imports as re2, not google_re2 like you might think.