Fix: Pydantic Settings Not Working — Env Vars Not Loading, Nested Config, and v2 Migration
How to fix Pydantic Settings errors — environment variables not picked up, .env file not loaded, ValidationError missing field, nested model env vars, SettingsConfigDict required, secret files, and BaseSettings import.