def METHOD_NAME(pattern, trigger) -> tuple[str, ...]:
    match = pattern.match(trigger.group(2))
    if match:
        return match.groups()
    else:
        raise ValueError("Pattern does not match")