GG, I agree, it is most likely fungus gnats.
Spraying may not treat eggs and larvae in the compost. I would remove the house plants from their pots, rinse compost off of the roots as much as you can, and re-pot with fresh compost (from a fresh unopened bag in case the gnats have invaded your opened Sylvagrow compost).
Fungus gnats invade compost that is breaking down (fungus developing so something for gnats to eat). They also invade compost that is too wet (which also encourages fungus). Fresh compost kept a bit drier should help.