Activate the Perl::Critic policy RegularExpressions::ProhibitCaptureWithoutTest
It is good practice to check whether a match was successfull before using match variables.
See https://github.com/RotherOSS/otobo/issues/2303 and https://metacpan.org/pod/Perl::Critic::Policy::RegularExpressions::ProhibitCaptureWithoutTest .
The policy should be activated for rel-11_0.