I switched to iPhone 8 from Android, and at the time set up my Gmail account as a contacts source in the iPhone. The Gmail account was subsequently deleted but the contacts remained on my iPhone. I couldn't edit the Gmail contacts, since when I tried I got prompted for the Gmail account password, but the contacts remained usable.
I've now upgraded to an iPhone 11, but I can't find a way to transfer the contacts. If I sync to iCloud, it just syncs the non Gmail ones. If I try to sync them to a MacBook it asks for the Gmail password. It seems it doesn't want to do anything with those contacts without first syncing with the Gmail account, and since that account no longer exists that's a problem.
Is there any way to transfer those contacts to the iPhone 11 without re-entering each one by hand?