Unless I am misreading the numbers, it appears that the number on the riveted plate is different from the one stamped into the engine block. My guess is that the shop that put it in, likely the dealer, manually stamped in the number from the original engine (check the data card I guess) while the tag has the replacement 'serial number'. So this engine has two different numbers, if I'm correct.
Some of these replacement engines end up losing the riveted tag and if that would happen in this case, you would end up having an engine with a manually stamped number that is the original one, making it look like it's the original rather than a replacement engine. The only evident clue would be the two small rivet holes.
My own engine is a replacement one, lost its tag long ago, but does not have a manually stamped number, so it's actually numberless. As I happen to have the proper die set, I could stamp in any number I'd like, e.g. The original one, but I prefer keeping it as-is. Although I may be forced to stamp in a number since I am going through the process of registering it in France, and the authorities are asking me for the engine number ...