def METHOD_NAME(self, decoded_input: str, regex_pattern: str) -> bool:
    """Perform a regex match on a given text using a specified regex pattern.
    Parameters:
    text (str): The text to perform the match on.
    regex_pattern (str): The regex pattern to use for the match.
    Returns:
    A list of match objects.
    """
    # Compile the regex pattern
    matches = []
    try:
        METHOD_NAME = re.compile(regex_pattern)
        # Perform the match
        matches = METHOD_NAME.findall(decoded_input)
    except Exception:
        logger.warning(f"Regex pattern {regex_pattern} could not be compiled.")
    # If there is a match, matches is a non-empty list, so we can use this
    # to infer if there was a match or not and return a bool
    return len(matches) > 0