def not_regex(value, pattern: str | re.Pattern) -> bool:
    """Not Matches a regexp against the value"""
    if isinstance(pattern, str):
        pattern = re.compile(pattern)
    return not pattern.match(value)
Not Matches a regexp against the value
dynaconf/validator_conditions.py