Show error when customer writes specific input

Continuing the discussion from Disable special characters in a text field input [RESOLVED]:

Hey, thank you for the filter.

Can you please tell me, can i set this filter only for Form XY and Field XY, and the error show only if the customer write exact this two letters “HH” or “HJ”. It is possible?

Thank you, kind regards.