Hello maybe this is not a transcendental issue but I think that the small details matter a lot, it is the following line:

In dark and light mode the same problem occurs affecting also the vertical tabs, this does not happen for example with the notepad application.

This problem has been present since the new version of Edge was released and is also present in Chrome.