def exclude_sims_by_regex(sims, regex):
    """Removes sims by using a regular expression.

    DESCRIPTION:
        Returns all sims that do NOT match the regular expression.

    ARGS:
        sims (iterable of strings): An iterable of strings contating candidate
            sim files
        regex (_sre.SRE_Pattern): The regular expression to use. This should
            be compiled e.g., re.compile(r'.+sim') which will find all sim files.

    RETURNS:
        A list of strings that do not match the regular expression.
    """
    output = []
    for sim in sims:
        if not regex.search(sim):
            output.append(sim)
    return output