diff --git a/utils/ci/scripts/89_check_version.sh b/utils/ci/scripts/89_check_version.sh
index ade66ac31e2f19247fbc97fcf6e90d9d162b57c8..96844077f5fe8d4b1e9de40acf4866c976ded34f 100755
--- a/utils/ci/scripts/89_check_version.sh
+++ b/utils/ci/scripts/89_check_version.sh
@@ -40,7 +40,7 @@ if [[ $exit_status -ne 0 ]]; then
 fi
 
 # Check if the output is exactly the tag name (ignoring 'v' prefix)
-if [[ "${version_output#v}" == "${TAG_NAME#v}" ]]; then
+if [[ "$version_output" =~ ${TAG_NAME#v}$ ]]; then
     echo "Version is correctly set: $version_output"
 else
     echo "Version is falsely set: $version_output"