Get some yellow sticky traps, put one up by the light and one down on top of the soil. Then you can catch and identify them once stuck to the trap.
If it is fungus gnats, use Microbe Lift BMC root drench. Thats the most bang for the buck BTI based product currently on the market, better value than mosquito dunks or gnatrol. It does take a little while to work as it only kills larvae leaving the adults to die off but if you have a sizable infestation and if you need to run another 3 weeks or so, you should try to mitigate them as best as possible because they end up stuck all over your buds and thats really depressing.
If they are root aphids and the situation is advanced (usually is if you see winded adults) then you are likely witnessing what appears to be a magnesium deficiency but it's actually damaged from the crawlers eating your roots.
Fungus gnats are not harmless as they can vector diseases such as pythium (root rot) so if you have floor drains or sink drains in the area, you should dump a couple tablespoons of bleach in them every now and then to kill off the larvae in the P-trap. Prevent having any standing water around, especially runoff from your plants. Thats a fungus gnat breeding ground.