Remote "flathub" not found

After installing flatpack on my jetson nano , I tried to install vs code with command provided by flathub I got "Error : Remote “flathub” not found .

Which vscode package are you trying to install?

but did you setup flathub properly?

see Set Up Flathub | Flathub