pydantic 2.7.1 pydantic_core 2.18.2 importrefromtypingimportAnnotated,FinalfrompydanticimportField,TypeAdapterTEMPLATE_STR_REGEX:Final[re.Pattern]=re.compile(r"(?<!\\)\$\{(.*?)\}|(?<!\\)\$([_a-zA-Z][_a-zA-Z0-9]*)")ConfigStr=Annotated[str,Field(...,pattern=TEMPLATE_STR_REGEX)...