Collapse path doesn't support variable length paths at this time. As per the documentation - Starting from every node in the specified graph, these relationship types are traversed one after the other using the order specified in the configuration. Only nodes reached after traversing every relationship type specified are used as end nodes.
I think you can apply collapse path repeatedly to get what you are looking for. For example,