If you’re dead set on centralising your private keys, I would store them in a password vault (e.g. 1Password has ssh integration, presumably its competitors do as well).
Unless you don’t want to reveal hostnames to Gitlab/Github, it should be fine to have a copy of your .ssh/config there though?