Tighten validation regex for lookup hashes.