Could be cheaper to get an aftermarket cassette from someone like SunRace that’ll fit on the XDR freehub and work (likely perfectly well) with the Shimano setup.
I’ve replaced a bunch of these free hubs in the shop. It’s not particularly weird but I’ve never found another that has the same shape. Avoid the trouble and just buy the part you need from factor.