import re


def exclude_filter(excl_filter, paths):
    """
    Matches a set of paths against an exclude filter, removing those that don't match

    param: excl_filter: The filter to match.
    param: paths: The set of paths to match against the filter.
    returns: A set of paths which do not match the filter.
    """
    misses = set()
    for p in paths:
        if re.search(excl_filter, p) is None:
            misses.add(p)

    return misses