I'm trying to fill values in a formula string by using Python Template Strings. The formula sometimes contains identifiers having non-ASCII characters like α, ß, Γ etc. (see Unicode Greek and Coptic Chart). But as per python documentation, the template string is limited to only ASCII identifiers.
The default regular expression to match the identifier is (?a:[_a-z][_a-z0-9]*)
.
How can I extend the default regular expression so it also matches the characters from Unicode Greek and Coptic Chart?