How to get sick out of carpet?

I was laying down in bed and suddenly felt sick so I got up to run to the toilet but I didn't make it. I was sick right by my bed 🤦🏻‍♀️ my carpets are grey and the sick is chocolate brown from what I ate. How can I get this out? It's stained it brown even after scrubbing it etc!