Apologize in the comments like how your parents would.

Somehow, against God's will, you were wrong.

Your kid was innocent and/or in the right about whatever subject you ridiculed, lectured, shamed (publicly or one on one), and did everything in your power to make them feel guilty and lose sleep over.

Now's the time to apologize. Oh but don't worry, you don't have to swallow your pride. Be as manipulative and condescending as you want to about it.