def METHOD_NAME(examples_dir: str, exclude_patterns: List[str]) -> List[str]:
    """Glob for Python files in the given directory."""
    files = []
    for path in Path(examples_dir).rglob("*.py"):
        if not any(re.search(p, str(path)) for p in exclude_patterns):
            files.append(path)
    return sorted(files)