This was fixed by upstream with that merge request:
https://salsa.debian.org/clint/fakeroot/-/merge_requests/10
It would be great to have the patches applied to the fakeroot provided here. Unfortunately upstream didn't had a new release that would include those patches.