Hello. Spread powdered Cinnamon around the soil and water in.
Cinnamon will kill the fungus, the gnats live on, and they starve.
It won't hurt the plant unless you use "way" too much.
Try 1/2 tsp for solo cups, and 2 Tbsp for big pots like 3 to 5 gallon.
When you water make sure the water goes down into the soil not down the sides.
Lavender essential oil and water is used in farming to get rid of fly's... 10 drop to 1 liter of water in a spray bottle
There's a couple of easy ways to combat them... Good Luck.
Chuck.