Use ENV File Validator without a complicated workflow.
Validate .env file lines, duplicate keys, missing values, comments, and unsafe formatting. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.