def filter_db_names(paths: List[str]) -> List[str]:
    """Returns a filtered list of `paths`, where every name matches our format.

    Args:
        paths: A list of file names.
    """
    return [
        db_path
        for db_path in paths
        if VERSION_RE.match(os.path.basename(db_path))
    ]