diff --git a/lhcbnightlyconf/Common.py b/lhcbnightlyconf/Common.py
index bd700f08c95e1946a60ead5c18001222ff7feee3..4cb4f333fb60cd0eba80782ed07f895d1eb671f9 100644
--- a/lhcbnightlyconf/Common.py
+++ b/lhcbnightlyconf/Common.py
@@ -91,7 +91,7 @@ WARNINGS_EXCEPTIONS = [
     r'This warning is for project developers',
     # This is an unavoidable warning when mixing new style CMake projects with
     # legacy ones
-    r'GaudiToolchainMacros\.cmake:68:',
+    r'GaudiToolchainMacros\.cmake\:68\:',
     r'CMakeLists.txt does not contain gaudi_project',
     # Suppressions for CMake 3.19 with old Vc, LBCORE-1992
     (r'CMake Deprecation Warning at .*/cmake/Vc/VcMacros.cmake.*'