Update:
I found this exact bug marked as solved in .net maui 9 release notes, so the solution was migrate the whole application from .net8 to .net9 and the bug magically disappeard