Within a monetized game, would I be able to reference the name of pre-existing fictional character without legal consequence?

As an example of this, there is a character within my story who likes to explore and travel as a hobby. Another character says something along the lines of, “You’re like a real-life Indiana Jones or Nathan Drake!” in direct reference to the first character’s lifestyle and adventurous personality. Indiana Jones is a character from a real-world film series, while Nathan Drake is a character from a real-world game series, both of which I obviously do not own. Would I be able to keep this line in the game if I was later planning on selling it?

I am asking this question in a subreddit related to writing, and a legal subreddit, too, in an attempt to get as clear of a picture as possible.

Thank you for your help!