Improve the isValidComponentIdentifier regex