You might still have to use a gmail account for this though, depending on if your email works with it.
There’s also Nextcloud which would be self hosted.
And the extremely low tech solution of just having them offline in a foss contacts app and exporting backups from that app to your storage in case you lose them.
I said in a foss one, I don’t think the foss developers are conspiring to get rid of your contacts, maybe for apple you might have to hope the developer doesn’t get burnt out, but the android foss community is pretty robust, but if you’re that paranoid just put them in a txt file or a spreadsheet.