Sorry to hear that my friend.
I have been fighting fungus gnats for 2 months now and the best I can do is regulate the population.
Here is what I recommend:
1. Get fly strips, place them horizontally along the top of the soil. You will catch more putting the strips closer to the soil and running them horizontally.
2. Get mosquito dunks, crush them and apply to top of soil on all plants. Also crush some up in a squirt bottle and apply this water to your soil tops.
3. Water plans sparingly. Your plants will do find without water for a week or so.
4. Vacuum your grow area frequently.
I've found with the combination above I can regulate the population but not kill them all.
The worst thing about fungus gnats is when you see 5 of them there are actually 100 that you're not seeing. So if you see 25, thats 500 and so on :/
They will come in blooms of hundreds or thousands as each gnat can lay 100's of eggs. I've definitely caught over a thousand on a fly strip during a hatch bloom.