I won't ask the sequence of events that would lead to such an outcome.
Let's see. First, when you ask "Can this be saved for food" I am assuming you mean the pan.
I think that most of this material will come out in a big chunk, right? So start by scraping it as clean as you can get. Anything left over
should burn off when you re-season it. I would start by putting it in the
oven on the Self-Clean cycle as recommended in Paul article.
Looking at the
MSDS for STP, nothing raises red flags for me. I am sure others on this forum would disagree with me. If you have other cast iron pans, I would probably go ahead and use those ones, but if this is all you've got, I would be comfortable cleaning, reseasoning, and using it for cooking.