You have mentioned that pension and other funds run by government are permissible. An important element in these is the predetermined, fixed rate of return and the absence of any risk of loss. In these circumstances, how are these different from bank interest?
Pension funds are meant for the benefit of the employees and their families. There is nothing wrong with all government employees, or those in large companies grouping together in order to support a fund which aims only to ensure that people are looked after in their old age or when the breadwinner is no longer alive. The fixed rate is acceptable and the government guarantees the absence of risk whose task it is to ensure the welfare of its people. There is no element of profit for the government. All is geared to the benefit of the participants. That is an aim of Islamic legislation.
Bank interest is meant to give profit to the bank. Hence it is run to ensure that the bank, not the creditors or borrowers, receive the net profit. If depositors are given a share of the profit, it is the continued profitability of the bank that is the aim.