Recalling this name in a dream may be the result of the brain processing information in the subconscious. Dreams are usually the way we process and integrate information in our hearts. Sometimes our brains will play back some events or experiences in dreams to help us remember and learn. So, you may hear that person's name again in your dream and remember it immediately after you wake up.
If you still can't remember that person's name, you can try some methods of memory awakening, such as association, repetition and writing. , it may be helpful. Anyway, don't worry too much, because memory mistakes are common, and everyone has had similar experiences.