You can still use capturing parentheses around the expression.

//echo -a $regex(blah_blah-5AD_ugh-AD-,/([(_-][A-Z]{2}[-_)])/g) // $regml(1)


Spelling mistakes, grammatical errors, and stupid comments are intentional.