
"Lump sums taken within three years of a buy-in cancel the tax deduction.
"Rule of Art. 79b para 3 BVG, as summarised by this agent

All your pension funds and vested-benefits accounts count together. If a lump sum is already due, delaying it to avoid the lock can still trigger the reversal. The tax office reverses the deduction up to the amount paid out, with interest.