Run the below command in terminal to make gnome switch between open windows in only the current workspace you are in:
gsettings set org.gnome.shell.app-switcher current-workspace-only true
Run the below command in terminal to make gnome switch between open windows in only the current workspace you are in:
gsettings set org.gnome.shell.app-switcher current-workspace-only true