https://github.com/geopython/pygeoapi/pull/1353

Index: pygeoapi/models/config.py
--- pygeoapi/models/config.py.orig
+++ pygeoapi/models/config.py
@@ -36,7 +36,7 @@ from pydantic import BaseModel, Field
 
 class APIRules(BaseModel):
     """ Pydantic model for API design rules that must be adhered to. """
-    api_version: str = Field(regex=r'^\d+\.\d+\..+$',
+    api_version: str = Field(pattern=r'^\d+\.\d+\..+$',
                              description="Semantic API version number.")
     url_prefix: str = Field(
         "",
@@ -62,11 +62,11 @@ class APIRules(BaseModel):
         """ Returns a new APIRules instance for the current API version
         and configured rules. """
         obj = {
-            k: v for k, v in rules_config.items() if k in APIRules.__fields__
+            k: v for k, v in rules_config.items() if k in APIRules.model_fields
         }
         # Validation will fail if required `api_version` is missing
         # or if `api_version` is not a semantic version number
-        return APIRules.parse_obj(obj)
+        return APIRules.model_validate(obj)
 
     @property
     def response_headers(self) -> dict:
