Confirmed in 1.21.4.
This is just a display bug, sharpness will still increase the damage of the weapon.
Confirmed in 1.21.4.