Yes. You can either pay zakat for every year that passes until you receive the loan back.
Alternatively you can wait until you receive the loan and then pay the accumulated zakat in one go.
If the loan is insecure and you are not sure whether the borrower will be able to pay you back, it is better to delay the zakat payment until you receive it, at which point the zakat accumulated over the years will be payable. If you never receive the money back, no zakat is payable.
No zakat is payable on money you are owed for work done until you receive the payment.
Similarly, zakat is not payable on a dowry that you have not yet received, or an inheritance share that you are due but has not come into your possession.
There are 2 ways in which a pension can be funded:
1) Payments are deducted from a salary before it comes into the possession of the contributor.
2) The contributor makes payments from money that has already come into their possession.
If the payments are deducted from the salary at source, so that the money never comes into the possession of the contributor, no zakat is due on the payments, nor is it due on the amount that accumulates in the pension or provident fund.
Zakat will only become payable when money from the fund is paid out and received by the contributor.
If the pension payments are made after the money has come into the possession of the contributor, then zakat is payable on the money that accumulates in the fund.
A loan you have taken out to acquire zakatable assets, such as raw materials, goods and so on, can be deducted from your capital. You pay zakat on what remains.
A loan you have taken out to acquire non-zakatable assets, such as furniture, machinery and buildings are not deductible.