insights: aggregations only group by the first capture group in a regex with multiple capturing groups
Created by: chwarwick
Updates the capture group aggregation logic to only return data from the 1st capture group
closes https://github.com/sourcegraph/sourcegraph/issues/40844
Test plan
unit tests added and pass