Was trying to remove the tire from the wheel to find a puncture in my tube and this happened.

Is it okay to use these tires anymore? the tread on them is wearing anyways, but I still want to know.
I've seen a similar thread but I felt that this case was somewhat different.