pub fn extract_beta_rev(version: &str) -> Option<String>
Extract the beta revision from the full version string.
The full version string looks like “a.b.c-beta.y”. And we need to extract the “y” part from the string.