It is not possible to query extension attributes in advanced search of any objectType (at least user and role). This worked in midpoint3.4
using extensionAttributes results in Internal Server error.
When having used an advanced query containing extension attributes it is not possible to use List users (List roles). It is required to log out and log in again.
This behaviour is not limited to extension attributes. Any unknown value in path seems to raise it.