Unable to connect to remote host

Never mind, problem solved by quitting Cursor, removing all extensions manually with this command:

rm -rf ~/.cursor/extensions/ms-vscode-remote.remote-ssh

And then re-installing the extensions inside Cursor.