5.10.1 should fix this issue, however it's required you use the .netstandard build on .net 7. Could you please check if you have the 5.10.1 version and the netstandard build of the runtime?
It might be you have a 5.10.1 hotfix build of the runtime, this issue was resolved on June 5th, the day we released 5.10.1 GA so if you have a hotfix build it doesn't contain this fix