Thanks for pushing me to improve! - I’ve edited the expression to match more version numbers.
For anybody interested in the Powershell version, here’s a link