Moving the answer from the question to make it better aligned with the SO format:
It is a bug and I'm not the only one experiencing this: https://github.com/dotnet/runtime/issues/109885