Thank you for reaching us!
I understand your concern about custom Attributes and claims for the Enterprise application in Microsoft Entra ID.
Within our lab environment, I have performed tests using Custom Claims, and the resulting response accurately reflects the values I have specified, and the result is expected which is shown below image.
To check the expected response of yours could you please share the steps that you followed, so that can check and help with your ask.