def search_list(lst, pattern):
    """

    Parameters
    ----------
    pattern: string

    lst: list of strings

    Returns
    -------
    filtered_list: list of str
        Filtered lists with the strings in which the pattern is found.
    """
    filt = re.compile(pattern).search
    return filter_list(lst, filt)
def search_list ( lst , pattern ) : filt = re . compile ( pattern ) . search return filter_list ( lst , filt )
Parameters
    ----------
    pattern: string

    lst: list of strings

    Returns
    -------
    filtered_list: list of str
        Filtered lists with the strings in which the pattern is found.