def Regex(pattern):
return typing.NewType(REGEX_TYPE_NAME, re.compile(pattern))<EOL>
A custom typing type to store regular expressions for schema building.

    :param str pattern: The regular expression
    :return: A new Regex type instance
    :rtype: typing.Type