For some reason my Android phone stopped synchronizing my Google contacts. So the workaround I found is to export my contacts from https://contacts.google.com/ to CSV and convert it to VCF with this script, which I can now import into my phone.
python3 convert contacts.csv