Vested benefits do not count towards your personal wealth for wealth tax purposes.
Because you do not pay income tax on money contributed to your occupational pension fund(s), you pay a capital withdrawal tax when you withdraw vested benefits. Capital withdrawal taxes vary broadly between cantons, so the amount of tax you have to pay when you withdraw vested benefits depends on which canton you live in.
If you live outside of Switzerland when you withdraw Swiss vested benefits, a withholding tax is deducted from your benefits before they are paid out. Withholding taxes vary broadly between cantons, so the amount of withholding tax deducted depends on the canton in which the vested benefits foundation is located. If Switzerland and the country you live in have a double-taxation agreement which accounts for vested benefits, you can reclaim the Swiss withholding tax because you pay applicable taxes in your country of residence.