Is this a miscarriage? (Trigger warning)

I haven’t taken a pregnancy test in a while so I don’t know if I was pregnant but this just came out of me. I will be going to the doctor for further testing but I would like some opinions please.