What is this?

I was just in the bath cleaning and reached down and this came out of my vagina. I’m on the pill and my bleed is due tomorrow so i’m not sure if this has anything to do with that or if it’s infection related ? Please help!