Taskbar shows windows from another workspace

I’ve two workspace active and my taskbar shows windows from another workspace. I need to hide it, is there a setting that can do this?

The alt+tab switchers seems to get this fine and not show windows from another workspace.

Have you tried this: Right click on the Taskbar -> Taskbar settings -> Behavior tab -> 'Isolate Workspaces'

Zorin OS 17 Core does not have the "Isolate Workspaces" UI Toggle.

To turn it on via shell, execute the following command on your terminal

gsettings set org.gnome.shell.extensions.zorin-taskbar isolate-workspaces true