Make sure you take a picture of the food, the lot # / label, and that maggot or worm.
Most likely it's a maggot.
And OMG MAGGOTS FREAK THE LIVING HECK OUT OF ME TO THE NTH DEGREE!!!!!!
I would call the vet and ask what you should do in terms of whether your kiddo needs to be seen.