If you want to handle this with Capture Collection it needs a callback as @Sweeper answer says.
It's more intricate although as he mentions in the caveats.
If you want to just do a Replacement then it can be done like this:
https://regex101.com/r/6Nu8e9/1 (Draft Saved)