Other texts that talk about church discipline, and restoration when possible:
Gal 6:1 Brothers, if anyone is caught in any transgression, you who are spiritual should restore him in a spirit of gentleness. Keep watch on yourself, lest you too be tempted.
Gal 6:2 Bear one another's burdens, and so fulfill the law of Christ.
In cases where the church initially withdrew fellowship, if the person turned around they were to publicly re-affirm their love for him that he might not be overwhelmed by excessive sorrow:
2Co 2:6 For such a one, this punishment by the majority is enough,
2Co 2:7 so you should rather turn to forgive and comfort him, or he may be overwhelmed by excessive sorrow.
2Co 2:8 So I beg you to reaffirm your love for him.
2Co 2:9 For this is why I wrote, that I might test you and know whether you are obedient in everything.
2Co 2:10 Anyone whom you forgive, I also forgive. Indeed, what I have forgiven, if I have forgiven anything, has been for your sake in the presence of Christ,
2Co 2:11 so that we would not be outwitted by Satan; for we are not ignorant of his designs.
Paul wrote on another of topics quite directly in his letters to the Corinthians. However, they served a purpose:
Co 7:8 For even if I made you grieve with my letter, I do not regret it—though I did regret it, for I see that that letter grieved you, though only for a while.
2Co 7:9 As it is, I rejoice, not because you were grieved, but because you were grieved into repenting. For you felt a godly grief, so that you suffered no loss through us.
2Co 7:10 For godly grief produces a repentance that leads to salvation without regret, whereas worldly grief produces death.
Godly grief produces repentance that leads to salvation, without regret. This is the goal whenever attempting to approach anyone.
Even if someone is put out of the church, the goal is still to bring them back:
Jas 5:19 My brothers, if anyone among you wanders from the truth and someone brings him back,
Jas 5:20 let him know that whoever brings back a sinner from his wandering will save his soul from death and will cover a multitude of sins.
2Th 3:13 As for you, brothers, do not grow weary in doing good.
2Th 3:14 If anyone does not obey what we say in this letter, take note of that person, and have nothing to do with him, that he may be ashamed.
2Th 3:15 Do not regard him as an enemy, but warn him as a brother.
Jesus also spoke about bringing matters to the church:
Mat 18:15 "If your brother sins against you, go and tell him his fault, between you and him alone. If he listens to you, you have gained your brother.
Mat 18:16 But if he does not listen, take one or two others along with you, that every charge may be established by the evidence of two or three witnesses.
Mat 18:17 If he refuses to listen to them, tell it to the church. And if he refuses to listen even to the church, let him be to you as a Gentile and a tax collector.
Even then, just as the church reached out to tax collectors, the person was not without hope. But the action was taken by the church to wake them up.
Paul also indicated that disputes between Christians could be resolved in the church:
1Co 6:1 When one of you has a grievance against another, does he dare go to law before the unrighteous instead of the saints?
1Co 6:2 Or do you not know that the saints will judge the world? And if the world is to be judged by you, are you incompetent to try trivial cases?
1Co 6:3 Do you not know that we are to judge angels? How much more, then, matters pertaining to this life!
1Co 6:4 So if you have such cases, why do you lay them before those who have no standing in the church?
1Co 6:5 I say this to your shame. Can it be that there is no one among you wise enough to settle a dispute between the brothers,
1Co 6:6 but brother goes to law against brother, and that before unbelievers?