How to reproduce:
Switch game mode from Creative to Survival
Use /give command to get Creaking Spawn Egg and use it
Left-click the Creaking
Observed behavior:
After left-clicking the Creaking, it dies
Expected behavior:
It should not die, and "Creaking is shielded" subtitle should appear
This is intentional as per the 24w40a changelog: