You will hear both, but only ' whoever ' is strictly 'correct' grammar, since the pronoun's function as subject of the verb 'shares' has priority over the preposition. The object of the preposition of is the whole clause, 'whoever shares her interests'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.