If you haven't, consider yourself lucky. Some of us aren't so.
Prisons can and should do better. But you are incredibly naive if you think there aren't people in the world whose only deterrence is prison or violent retribution.
If you are thinking about citing the Italian study[0] that people always cite in respond arguments against deterrence. My response is that it's way more likely that 1 month less in prison is what caused the lower re-offending rare, not the threat of 1 month more in prison if they re-offend.
[0]: https://www.journals.uchicago.edu/doi/abs/10.1086/599286
I also wonder how people rationalize seeking punishment. More often than not, no forced act can undo wrought damage, particularly emotional damage, and people don't really feel better seeing others suffer, even if that's what they believe they want.
People also are extremely prone to forgetting the core intent of society's justice system and prisons, which is (or should be) reform, which is sad. Many balk at the idea that prison is humane in any dimension. We have a lot of growing to do :(
Provide for jobs, pay a reasonable market wage, a fair amount of paid time off and/or sick leave.
Then teach them how to pay bills and prioritize. Charge reasonable rates for accommodations, food, and amenities. Let people upgrade their room for an increased monthly fee. Maybe they can pay for cable. If someone wants a steak on their birthday, they can splurge and get one -- but it will cost them more than their usual meal.
Now you're probably asking: "but what if they refuse to work?" I say: the same thing that happens outside a prison. You don't work, you don't get paid. You don't get paid, you can't buy food. You can't buy food, you don't eat. The problem will solve itself after a while.