def METHOD_NAME(name: str) -> None:
    name_regex = config.config["tag_category_name_regex"]
    if not re.match(name_regex, name):
        raise InvalidTagCategoryNameError(
            "Name must satisfy regex %r." % name_regex
        )