Capturing group to match content between source and target in QA checker

Hi, using a capturing group and a backreference, I would like to trigger an error if the target contains a different acronym, like in the following exemple:

The agency is BLA.
L'agence est BLI.
The agency is BLACK
L'agence est BLINDERTHANABAT.

Regex source = ([A-Z]+)\.
Regex target = $1\.


Please let me know how I could implement this in the QA checker?

Thanks in advance