Sonic himself is not romantically interested in the human characters. The affection runs the other way, and it exists mostly so the games have something at stake beyond the next boss fight.
Princess Elise in Sonic the Hedgehog (2006) is the usual example people point to. She is an odd fit for the series, and part of the reason she is remembered unkindly is that she needs rescuing rather than driving the story. It is worth remembering that helping someone who is in trouble is not itself a flaw, even if the writing around her was weak. Sega was reaching for drama, and it did not land.