def test_invalid_regex_match():
    """
    Test an invalid regex match using CTFdRegexFlag
    """
    flag = CTFdRegexFlag()
    flag.content = r"^[A-Z]\d{3}$"
    flag.data = "case_sensitive"
    provided_flag = "invalid"
    assert not flag.compare(flag, provided_flag)  # nosec

    Test an invalid regex match using CTFdRegexFlag
    
CTFd/plugins/flags/tests/test_flags.py