I don't know if Javascript regexes have an equivalent to Python's \w with the UNICODE flag, but in any case, we don't want to allow \u0000-\u001f in our group names, those are control characters.