Mismatch in localId of Confluence macro

Ah yes, the macro ID conundrum!

Unfortunately, over the course of the years, the relevant documentation for this has disappeared from the official sources, but fortunately there is still some information left to be found here on the forums:

In short, the macro ID is replaced by an auto generated UUID with ever new version. This is not a reliable identifier!