from typing import List
from typing import Pattern


def _is_in_ignore_list_re(element: str, ignore_list_re: List[Pattern]) -> bool:
    """Determines if the element is matched in a regex ignore-list."""
    return any(file_pattern.match(element) for file_pattern in ignore_list_re)