import re.compile directly (there is a builtin named compile)
Fix syntax error