TMI!!! What could this be from?

So I when I went to the bathroom last night and this came out of me, however I’m not 100% sure which hole it came out of. I pooped a little bit..

I’m also on the off week of my BC pills but haven’t gotten my period yet, could it be from that?

* no I haven’t had sex recently

Update:

I went to the doctors after posting this and the doctor confirmed it’s not worms and stated it’s most likely from the probiotic apricots I ate.

But they are also sending my urine for a culture to rule out a UTI since I had some bacteria in my urine