Test, validate and match regular expressions
Matches a semantic version string (SemVer 2.0.0), including major.minor.patch, optional pre-release identifiers separated by hyphens, and optional build metadata separated by plus signs. Useful for validating version inputs in changelogs, package manifests, or CI pipelines.