You probably have standing water. You need to DRY OUT your grow area. Put the pots up on racks if you have to. Empty and SCRUB catch trays under the plants. Let them dry out entirely and prevent water sitting in them in the future. Those little shits look like fungus gnats to me, and only live in environments that have stagnant water or muck to breed in.