Python Regex Create Pattern In Affinity