Matthew 18:15-20, the famous passage in which Jesus says to go to a brother in private and then with two or three others before bringing an offense before the whole church, is about restitution and restoration in interpersonal offenses. It's not about exposing private sins or false doctrines, even though the same principle might apply sometimes in those situations. This process only works if you, the other person, and the whole congregation have been taught sound doctrine founded in God's Law. Without that, it's meaningless.
https://rumble.com/v1ius6u-mat....thew-1815-20-if-a-br