Hi Diana,
one more suggestion: Remove your current xfem, ngsolve, netgen installations, install the ngsolve version compatible with the last stable release of xfem (pip install ngsolve==6.2.2204) and then install xfem (pip install xfem).
Hope this helps.
Best wishes,
Henry