Fixing pre-commit is using pyyaml with broken version
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0d68b81ccd..10e65316e8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,7 @@ repos:
         additional_dependencies:
           &version_check_dependencies [
             commonmark==0.9.1,
-            pyyaml==5.4.1,
+            pyyaml==6.0.1,
             beautifulsoup4==4.9.3,
           ]
 

This is to resolve #3803 