from typing import List
import re


def filter_files(files: List, pattern: str) -> List[str]:
    """Filter files list by regex pattern.

    Args:
        files: list of filename string(s)
        pattern: list of glob pattern(s)

    Returns:
        filtered list of filenames
    """
    r = re.compile(pattern)
    return list(filter(r.match, files))