There have been a couple of threads here that looked at a few different ways to approach the problem…
Have a look here:
https://discuss.pixls.us/t/i-want-to-dehaze-a-photo-with-retinex/
Or possibly here:
https://discuss.pixls.us/t/dehaze-equivalent-in-darktable-or-rawtherapee/