diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index c9e41d4149f7..c6016f60a446 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -711,7 +711,7 @@ class MesonChecker(StyleChecker):
 
 class Pep8Checker(StyleChecker):
     patterns = ('*.py',)
-    results_regex = re.compile(r'stdin:([0-9]+):([0-9]+)(.*)')
+    results_regex = re.compile(r'stdin:([0-9]+):([0-9]+): (.*)')
 
     def __init__(self, content):
         super().__init__()
