Allow stability qualifiers without a dash separator

- Updated the version regex to allow a stability qualifier without requiring a
  dash separator; e.g., both `1.0.0-beta1` and `1.0.0beta1` should match as
  valid versions.