Gatling Group By Regex

How to use group by function fore Gatling Regex -
Example - Regex “RootAssetId\”:[\"(.+)?\",\"(.+)?\",\"(.+)?\",\"(.+)?\"]},\"error
Response -

Match[1][1]=ID1
Match[1][2]=ID2
Match[1][3]=ID3
Match[1][4]=ID4

I want to pass ID1,ID2,ID3 and ID4 to a next request but find(0) or findAll() not helping in this case. Please do suggest if any solution.

Please take some time to read the documentation: https://gatling.io/docs/current/http/http_check

regex("foo(.*)bar(.*)baz").ofType[(String, String)]