Hub is probably toast.
Your only trick may be throwing on a BB spacer ring or two to cover the stripped threads, and put on the cog after them, onto the intact threads, if there are enough. Problem is, you'll probably not be able to put on a lockring. Chainline will also change.
But if it's a flipflop, just use the other side.