I'm not sure if you can control the fog, at least in Godot 3.x. It seems they added fog shaders in Godot 4.0, but I wouldn't recommend using it right now because it is beta and a lot of stuff is not working. In Godot 3.x you can code your own fog pretty easily just be reading the depth map and adding a black color. Then you can customize it with your flash light.