If you want to verify "AB.12" but "ABx12" is also passing, check if the dot is being specified as a literal character. In Python's regular expressions, . usually matches any character except a newline ...
This has actually been a handy little key going back decades. It first appeared on computer keyboards all the way back in ...