Before the two letters, you need to match the word boundary ( \b):
\b[a-zA-Z]{2}$
This will match any two latin letters that appear at the end of the line if they are not preceded by the word symbol (this is a latin letter, number or underscore).
, , lookbehind, :
(?<![a-zA-Z])[a-zA-Z]{2}$