I bisected the failure and it looks like it's caused instead by 44d6f2adbcca119faebc095f3cfbeeafc50d04f3, from https://gitlab.winehq.org/wine/wine/-/merge_requests/657. Reverting it alone fixes it:
Ah sorry about that, reverting your MR fixed it for me but it's possible that I screwed up the test.