Pull (someone) down a peg (or two) idiom
If someone or something pulls (someone) down a peg (or two), they bring that person down, put them in their place or make them feel more humble and ashamed.
I hope that the teacher pulls John down a peg or two. He always told me that I was dumb while he was not that bright.
The commander lost the battle and it without a doubt pull him down a peg.
Marie's haughtiness made everyone dislike her and stay away from her. Thankfully, Kim, the most straightforward person in the class, pull her down a peg and Marie could not even say a word back.
Be embarrassed and ashamed when one has been defeated or failed
If one is brought down a notch (or two), they are reduced their pride or ego.
To humiliate someone, or show someone that they are not as important as they think.
To publicly say that an individual or organization has done something wrong or illegal