Praise be to Allah.
The lump sum paid upon retirement and the lump sum paid that was paid out when he died should be divided according to the shares of inheritance among all the heirs, in accordance with the rulings of sharee‘ah.
If any of the heirs dies before the wealth is distributed, then his share should be distributed among his own heirs.
With regard to the pension, it is a gift from the government and belongs to the person designated by the government system; it does not have to be distributed among all the heirs.
With regard to the money that was deducted from your father for the cooperative savings group mentioned, it is definitely to be distributed among the heirs according to the rulings of sharee‘ah.
And Allah knows best.