https://www.softwareheritage.org/ https://archive.softwareheritage.org/
It regularly discovers new source code repositories on GitHub, GitLab, Launchpad, SourceForge, Bitbucket, many GitLab/Gitea/Gogs/Heptapod/Pagure/Phabricator/cgit/gitweb instances, several language package managers and several distros. The current coverage is documented here:
https://archive.softwareheritage.org/coverage/
Is there any public source code repository hosting that is missing from the list?