New pattern for semver

This introduces the regex pattern for semver that is used in https://github.com/sindresorhus/semver-regex

It also makes a definition for the semver-requirement without any pattern, since that can be a list ov versions and several other complex definitions.