I’m using the following command for this:
git describe --match "v[0-9]*" --abbrev=4 HEAD
It will also modify the version if you did something with the source tree since your last versioned tag.
Please note that this is not a regex but a glob but works for the provided example.