Can you help identify this please?

Can you help identify this please?

Observation - Can you help identify this please?. Description: I am doing a lot of digging in the garden and I keep finding these in the soil. Possibly a fly larvae? Please can someone identify? I would love to know what they are! They range from 0.5cm to about 5cm so far. I picked this one up and it vomited a small

I am doing a lot of digging in the garden and I keep finding these in the soil. Possibly a fly larvae? Please can someone identify? I would love to know what they are!
They range from 0.5cm to about 5cm so far. I picked this one up and it vomited a small amount of brown liquid onto my hand. Any ideas anyone?
Thank you!