To assign a shortcut to a specific workspace you have a dedicated menu item under ‘Window – Assing To “..” Workspace – Shift F10 – F12’
Here you can assign either one of these F-Keys to the currently selected workspace. So you have to switch to that workspace first, to then assign the shortcut here in this menu.