I don't think `re.compile` accepts parsed patterns, only strings or compiled patterns.