Your pictures show aphids, which are pretty easy to kill. You can just spray with soapy water or H2O2 solution.
At this point the worms are almost impossible to get rid of, as they’re deep in the bud, shitting away. You’ll have to do daily inspections and remove the infected buds. Make sure and remove ALL the infected area, as the poop will lead to mold and if left will ruin the entire cola. The big bummer is that it’s almost impossible to notice. Look for
any yellow sugar leaves. If you see one pull it straight out from the bud (not down). If it comes off, almost assuredly the bud is rotting and you’ll need to clean it out.
This picture is a good example. Looks good until you look right in the center and you can see the leaf turning yellow. Sure enough there’s a worm and the entire bud is toast.
View attachment 1262633
Doesn’t help you at this point, but going forward you’ll want to spray with a Bt product (listed for worms) starting early in your grow. It doesn’t kill on contact and breaks down quickly in the sun. So you’ll want to make it part of your PM strategy from the get go.