Filters paths, returning only those that match.
paths
List<String> matchAll(List<String> paths) => paths.where(match).toList();