Shouldn't this character be infected in The Last of Us II?

Solution 1:

We don't really know how Ellie's immunity works. However, she does mention:

I can't... get you infected, if that's what you're worried about... I can't make you immune either.

Last of Us 2 cutscene

So she somehow knows that she can't infect other people.