checks/*: Remove unused capture groups

Enable the UnusedCapture policy and fix all remaining "violations".

Some "fixes" include having to store the capture in a local variable
immediately to avoid false-positives.

Signed-off-by: Niels Thykier <niels@thykier.net>