I very rarely use shutter speed priority but I just tried with my Z7 II to ascertain whether it does, in that mode, the same thing it does in aperture priority, and it does, i.e., it remembers the last setting it was on when switched off, and goes back to it.
For example, I set it to S mode and...