Windows show only windows from current desktop on taskbar

How can I display on the taskbar in windows 11 only windows from currently used desktop?
I am aware of the option System > Multitasking > Desktops and choosing the option. However it appears that it does not work anymore