What are the white worm like things in pea soup?

Maggots. Pea soup is a nutritious liquid that can attract flies; they can lay eggs in the soup, which quickly hatch into maggots. To avoid such unpleasant surprises, keep your food, especially cooked liquids, well-covered or sealed when not in use, and refrigerate perishable meals as soon as you're done consuming them. Always check your food for freshness before consumption.