def METHOD_NAME(queue_names_str: str) -> list[Queue]:
    """Parse a | separated string of queue names against the app.queues dict.
    The app.queues dict is expected to have queue names as keys, and rq.Queue objects as values.
    :param queue_names_str: a string with queue names separated by the | character
    :returns:               a list of Queue objects.
    """
    q_list = []
    for q_name in queue_names_str.split("|"):
        if q_name in app.queues:
            q_list.append(app.queues[q_name])
        else:
            raise ValueError(f"Unknown queue '{q_name}'.")
    return q_list