There are only two possible candidates.
There is Scarlet Witch. Who is a magician, and a telepath, and is fracturing reality all by herself. On a fundamental level she might simply be mentally too chaotic for a spell like Doctor Strange’s to work on her. But as far as characters who have appeared in the MCU, she has a far greater claim to being able to resist a world wide forgetfulness spell than anyone else on the planet.
The only other person, and this is a long shot, would be Thor.
Thor is a god and is innately magical. And he was off world at the time the spell was cast. I would be far more confident that Loki wouldn’t be affected by the spell, but Thor’s innate godliness could, potentially, deflect a magical spell of that type. And also, he was in space when it happened.
It’s a magic spell of the mind. Only people with either magical or mental abilities could conceivably resist it. Preferably both. And the only other member of the Avengers in the MCU with either of those abilities is Mantis, who I don’t think even knew who Peter Parker was in the first place in order to be compelled to forget him in the second place.
But we won’t really know if there is an answer to this question until Marvel releases another movie where Spider-Man interacts with many of these people.
Thanks for reading: Which Avenger do you think still remembers Peter Parker, and why?, Sorry, my English is bad:)