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 ...
Python has evolved significantly over the past decade. While Python once had a strong reputation as an "easy-to-write scripting language," it has now advanced in various areas, including type checking ...