def list_format_strings_from_aliases(aliases, match_multiple=False):
    """
    List patterns from a collection of alias objects

    :param aliases: The list of aliases
    :type  aliases: ``list`` of :class:`st2common.models.api.action.ActionAliasAPI`

    :return: A description of potential execution patterns in a list of aliases.
    :rtype: ``list`` of ``list``
    """
    patterns = []
    for alias in aliases:
        for format_ in alias.formats:
            display, representations, _match_multiple = normalise_alias_format_string(
                format_
            )
            if display and len(representations) == 0:
                patterns.append(
                    {
                        "alias": alias,
                        "format": format_,
                        "display": display,
                        "representation": "",
                    }
                )
            else:
                patterns.extend(
                    [
                        {
                            "alias": alias,
                            "format": format_,
                            "display": display,
                            "representation": representation,
                            "match_multiple": _match_multiple,
                        }
                        for representation in representations
                    ]
                )
    return patterns

    List patterns from a collection of alias objects

    :param aliases: The list of aliases
    :type  aliases: ``list`` of :class:`st2common.models.api.action.ActionAliasAPI`

    :return: A description of potential execution patterns in a list of aliases.
    :rtype: ``list`` of ``list``
    
st2common/st2common/util/actionalias_matching.py