Homemade insecticide

Hello I recently repotted all my indoor plants, using the same bag of potting soil. One of them has developed an infestation of “fruit flies” (that’s what they look like). I would like to know how to make a home…