The withholding tax of 35% (in Switzerland) and 15%-30% abroad is paid by the banks as withholding tax directly to the Federal Tax Administration (SFTA).
This amount will be refunded to the taxpayer if the assets are correctly declared in the tax return.