Hey, are you setting these optional claims up in the resource application object?
Note that the resource is what defines what items will be returned not the application registration that has the client id that you're using to request and access token from. This is a common error that most people make as they make the modifications in the application registration object, not the resource object.
You can will need to use either custom claims mapping, or optional claims.