Hello Josette I had this happen 2 years ago and lost many seedlings. They are fungus gnats.
I did find one article... buy hydrogen peroxide 3% in the drug store...
for cuts and antiseptic for skin...
(DO NOT buy hydrogen peroxide for hair it is TOO strong)
Make a solution 25ml plus 75 ml water... you can double or triple this amount.
Pour this solution directly on the soil.. the soil will bubble up but this is OK.
It will kill the fungus gnat larvae in the soil but not harm the seedlings.
The larvae eat the roots of the seedlings... some may live... it will be up to the amount of root damage...
If you are buying store bought soil,, make sure you moisten it... then microwave on high for 2 minutes in small batches... this will kill any fungus gnats that may come from the soil..
next year...do this instead...
I also use beneficial nematodes to prevent the outbreak. You can buy these from Ladies in Red beneficial insects etc online The nematodes kill the larvae in the soil...
I mix 2 tablespoons of the mixture per gallon of water and then water the seedlings just ONCE. this puts the beneficial nematodes in the soil and these will kill the fungus gnats larvae. I have not had any problems since using the beneficial nematodes...
Do not use the beneficial nematodes with the hydrogen peroxide as you might kill the nematodes. so this year only use the hydrogen peroxide..
Put up a lot more yellow sticky tapes... you want to catch as many of the adults as possible.
I hope this helps. I hope someone can translate for you

Claudia