I still have actual regular nightmares from my school-years, even though I've just reached 40 years of age. They started when I was 20-something, and they will probably never go away. What is more interesting is that during my school years I never looked at school as an institution as being repressive or "prison-like", looks like my unconscious/subconscious/whatever there is there inside was very good at repressing that obvious fact.
I hated school too. But what caused your nightmares? For me, it was my peers, not oppressive teachers. Most modern high school movies seem to suggest the same thing. So perhaps we should fix the quote. Schools are like prisons - where the prisoners have taken over the institution.