How to convert enum.IntFlag from compiled regex to re.RegexFlag objects? Given a regex that looks like this: