Is there a way to map roles with their corresponding scopes in a single claim in keycloak OAuth token

Since a few days, I was trying to see if there is a way to club roles with its corresponding scopes in a single claim in the token. But I didn’t find anything. Now, I’m thinking is it actually possible as I didn’t find anything on it. My present token with roles looks like this

    "scope": "UPDATE DELETE READ",
    "roles": [
        "Asset Admin",
        "Asset Manager"
    ],
    "groups": [
       "Admins",
       "Managers"
    ]

I’m looking for something like

        "roles": [
			    {
				"role": "Asset Admin",
				"scopes": [UPDATE DELETE READ]
			    },
			   {
				"role": "Asset Manager",
				"scopes": [READ]
			   },
            
        ],
        "groups": [
           "Admins",
           "Managers"
        ]

Even i’m looking for the same setup, i saw this post and there are no suggestion or responses. But i have posted an email to KeyCloak Users mailing list.

https://groups.google.com/g/keycloak-user/c/kQ_9Vl22HZU

Hope to get some responses or suggestions for this query. Thanks