I am a teacher. Why don't you ask to sit on the class with your son? I have had many parents come to school with their 7th graders.
I do think the teacher's words, as you have described them, are in bad taste, but every teacher has their own style of doing things. This is a good lesson...