HELP!!

I am 17 years old and I have a light pink string hanging from my vagina. My boyfriend knows and we are okay but sex is also really painful.. I don’t know if it’s from the string or something else.. please help!! ( we tried to have sex tonight and I literally cried from being in pain & yes my boyfriend did stop and does understand)

G