...And show me the quote where Padre Pio said that. I don’t believe it. The state of the person’s soul is set at death. That is Church teaching.
https://st-padre-pio.fr/padre-pio-et-lefficacite-de-la-priere-au-fil-du-temps-pourquoi-nous-pouvons-prier-pour-les-defunts-et-les-ames-du-purgatoire-la-toussaint-et-le-mois-de-novembre"...He often said that it was necessary to pray for the deceased, even if they had been dead for many years, because God, as the master of time, can use such prayers at any time in their lives.
One day, a woman came to see Padre Pio and asked him if it made sense to pray for her grandfather - who had died many years past - because he had not been particularly religious in his life. He replied, “God is the master of time, with Him there is no time as we know it. Pray for your grandfather, and God will be able to apply your prayers as if he were still at the end of his life.”
These words greatly surprised the woman. But Padre Pio explained that God hears prayers in eternity and that He can use them for the deceased during his life, even in his last moments...."
****
This reminds me of a story from England(?).
A man had just died in the hospital and he found himself standing at the precipice of hell. Fire and smoke. Jesus appeared beside him and said: " I cannot help you". Then He added:" Your family is now praying in a room, praying the Rosary for you." He repeated:"I cannot help you."
Miraculously the man came back to life through Our Lady's intercession. The man made a confession, and a soul was saved that day. Not sure, but I think he lived about four years longer, and lived very devoutly, praying Rosaries.
There are other stories similar to this one, where the dead regain life, confess etc., and are asked to choose what comes next. Amazing graces+