Does exist an aggregate function that work as opposite of Flatten?

Hello guys. I’m looking for a way to LISTAGG the results of a query.

I’ve noticed that to do the opposite of that, we can use regexp_split() + flatten() and get things done. Thus, if we could de-flatten a dataset would be very nice.