diff --git a/.github/workflows/client-compatibility.yml b/.github/workflows/client-compatibility.yml
index bd02918..cdbb64f 100644
--- a/.github/workflows/client-compatibility.yml
+++ b/.github/workflows/client-compatibility.yml
@@ -33,6 +33,6 @@ jobs:
- name: Run client app
run: |
cd $GITHUB_WORKSPACE/client
- sed -i -E "s|\(\)[^<]*\(\)|\1${{ matrix.driver_version }}\2|" pom.xml
+ sed -i "s|\.*<\/driver.version>|{{ matrix.driver_version }}<\/driver.version>|" pom.xml
mvn compile exec:java -Dexec.mainClass="org.example.Main"