Undo Set Current Page works only if you changed pages through the History panel and not if you scrolled through the document window. This is a bug that has annoyed me for a long time but I only noticed the pattern today.
These two histories are identical but undoing them will give different results. In the one on the left I set the page through the Pages panel which creates a history item named "Set current page". In the one on the right I scrolled through the document window and then created a rectangle on the visible page, which caused Publisher to create a history item with the same name. Undoing the first works, undoing the second has no effect.
I've attached a screen recording that illustrates the problem.
Screen Recording 2022-12-17 at 4.58.25 PM.mov