Catholicism teaches that purgatory is where the final purification from sins not confessed occurs through suffering.
It is totally unscriptural because without the shedding of blood there is no forgiveness of sins and where there is forgiveness, there remains no more sacrifice.
No one can be cleansed from sin by suffering.
If there is sin credited to your account when you die, tough lock. You are not saved and no amount of torment in anywhere can change that.
And yet suffering usually accompanies pushing Satan away, out of a life. I think we need to see the difference between a status salvation and a realized salvation. “Work out your salvation with fear and trembling, for it is God who works in you.” I don’t have a pair of scissors sharp enough to cut that out of my bible. We fear and tremble lest we need to be chastised... not lest we lose our salvation!