'.env file shows errors(red underlines) in vscode - it works fine though

I'm having this project structure:

enter image description here

Although the file works correctly but it shows errors(red underlines) in VSCODE.

Why does this happen and how can we solve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source