def METHOD_NAME(self, task_id: str) -> bool:
    try:
        return any(
            re.fullmatch(regex, task_id.split(".")[1]) is not None
            for regex in self.matchers
        )
    except re.error:
        return False