def test_valid_regex_match_case_insensitive():
    """
    Test a valid regex match in a case-insensitive manner using CTFdRegexFlag
    """
    flag = CTFdRegexFlag()
    flag.content = r"^[a-z]\d{3}$"
    flag.data = "case_insensitive"
    provided_flag = "A123"
    assert flag.compare(flag, provided_flag)  # nosec

    Test a valid regex match in a case-insensitive manner using CTFdRegexFlag
    
CTFd/plugins/flags/tests/test_flags.py