Parse the version string to SemVer.
parsed SemVer or null if it cannot be parsed.
version string to be parsed.