from typing import List
from pathlib import Path


def files_filter_ext(files: List[Path], ext: str) -> List[Path]:
    """Filter files from a list matching a extension.

    Args:
        files: List of files.
        ext: Extension to filter.

    Returns:
        List of files that have the extension.
    """
    return [f for f in files if f.suffix == ext]