Discouraged, I threw them all out. Any idea what they are? I did find a cucumber beetle on them a couple weeks ago because I figured it wasn't a big deal, and the photos I'm seeing of their larvae don't quite match the wriggling mass of tiny maggots I found. I probably should have taken a photo, but they mostly look like tiny grains of rice.

I know I can just plant more for a later harvest, but I was already picking off leaves and put them in a couple different dishes and, well, any setback is discouraging.
ETA: I'm also wondering if there's any way to save the soil--treat it, or let it dry out and kill the worms? It's hard for me to get rid of that much soil and I don't want to waste it.