I would do it all over again. But that's not the case for every doctoral student. We both have Ph. D's in English from Princeton. I'm thinking about getting a Ph.D. in sociology, but I'm not entirely sure I want to stay in academia forever.
Sociologists sometimes work for think tanks, for governmental agencies, for nonprofit groups, etc.
First, remember you're not alone. We interviewed hundreds of people who felt that way. The most important thing is to figure out what you do love to do and translate those skills. If you love teaching, you can find another way to teach. If you love research, there are many other ways to continue that interest.