In my case it was previously setup for GHE.com so needed to undo https://docs.github.com/en/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom