Updating regex to validate keys #5