Regular expression for matching semver versions