Dog threw this black thing up?

Came home and my dog had thrown up. In it was this black thing? It was full of a brownish thick substance that squirted out when pressed. I don’t know what it could be.

She’s now acting very sick and had continued throwing up and had diarrhea.