I found the solution, I had to install the "Remote NDIS Compatible Device" driver from Microsoft. The device is not recognized automatically because it doesn't have a proper signature, I guess. Follow the instructions starting with "Do the following to install the “RNDIS drivers” and the terminal application.":
https://docs.sailfishos.org/Support/Help_Articles/Recovery_Mode/