One trick I’ve used is when you hear someone’s name, think about 3 other people with the same name.
For me the issue is that I forget their name like 3 seconds after they’ve introduced themselves. That or the name didn’t even register in the first place.