No, it's not even trying to read the file.
Parse the YAML file into a Python dictionary: you'll need a YAML parsing library like PyYAML or whatever method you like.
Pass that dictionary to your Settings model's constructor: Pydantic will then take this dictionary and validate its contents against your model.