def prepare_search_string(string: str) -> list:
    """ Transform a search string into a list of strings if "|" was used inside the string

    Agrees with escaped pipes.

    :param string: String to prepare
    :return: List of strings to search for
    """
    value = string.replace('\\|', '¤$¤')
    value = [v.replace('¤$¤', '|') for v in value.split('|')]
    return value