String like piece of flesh in my vagina

What is that string like piece of flesh at the opening of my vagina? I broke it during sex last night and it hurts. Half of it is still attached. I don't know what to do about it.