Move lookup pattern checks to checker package

These are now more sophisticated, allowing for checking to see if
non-existent IDs would be allowed through by the regex.