This could even generate a new relay e-mail for them in the same process so that a single QR code gives them the name and both a unique-to-them phone number and e-mail address to contact you, and adds it to their contacts automatically.
Sharing of contact details could be done by a side-channel:
1) Someone I already know and trust asks to share my contact details to a third party.
2) I get a prompt on my device asking to confirm I want to connect with this new person.
3) A diffie/hellman exchange sets up a secure channel between myself and this new third party.
4) We both confirm we want to add each other.
5) A unique e-mail address and phone number is generated on each device and sent across the channel to the other party.
6) Both parties have now established a new contact for the other party with contact details completely unique to them.
This would entirely resolve a whole class of issues around data protection/harassment/privacy.
If anyone at any time wishes to rescind contact permission they can just burn that contact link. Sure, you could be contacted via someone else that also knows both of you but there's a massive disincentive to pass along your details without your consent - you'll know who passed along your details because they'll be the same unique details you issued to someone else, and you can freely burn their contact link too.
Phone numbers are an utterly terrible system. Having to give a single number out to everyone is a stupid beyond belief design that we just tolerate year after year. That SIM-based 2FA exists makes this even worse.
Apple has already shone a light on this and basically shown their customers that having a single primary-key-for-contact circulate to everyone is insane - which is why they now have the private relay for e-mail. I have my own reservations about the relay, but we really should move to single-number-per-contact and make that the norm.
And yes, I realise this wouldn't be supported by the current phone networks, which is why Apple/Google need to be the people to introduce a vendor-agnostic system as a layer above the current phone networks (akin to a private relay for phones).
This is not unprecedented - they've collaborated on a lot of standards before (matter is a recent example that comes to mind).