insights: aggregations adds capture group matching logic for repo/path/commit
Created by: chwarwick
Adds logic to check for capture groups in repo name, file path and commit message when it hits those result types.
resolves https://github.com/sourcegraph/sourcegraph/issues/40794
Test plan
unit tests added and pass. manual ran and validated capture group counts against commits, repo and files