This is not the case in 26.2, where it displays as the backslash.
As of 26.3, key.keyboard.world.2 is displayed as #, despite the existing backslash key also displaying as #. This results in two keys which are not distinguishable from each other when viewed in the options menu, which is obviously not good, and something recent fixes (e.g. MC-263708) have attempted to address.
Fixing MC-310254 would likely result in this, too, being fixed.
Thank you for helping us improve Minecraft! We saved your files: