You can find the 2 officially suggested regular expressions on the Semantic Versioning homepage: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string