Replace the IDENTIFIER_REGEX with the isidentifier function