"Nerd" has been the subject of a long and largely successful attempt at reclamation, to the point where people younger than a certain age don't generally consider it to be derogatory and comfortably identify with it. It's been so successful that the author feels the need to prepend the word "weird" to clarify that we're not talking about just anyone who likes video games.
By the time I was helping with a local youth group in 2017 (14 year olds) the very extroverted ringleader of the group was a proud "nerd", by which he meant that he and his friends loved to play video games like Fortnite and had an aversion to sports.
Take a look at the highest voted entries in Urban Dictionary [0]. Obviously this isn't a scientific measurement, but it shows a strong subculture of self-identified nerds who embrace the label to some degree.
Edit: here's another source [1] that you may find more credible, from 2012:
> And the appropriation of the word "nerd" was a "battle that got won", says [Neil] Gaiman. "It's like many terms that were originally intended to offend, the team that was offended took it as its own as a badge of honour.
> "It's part of a cycle, that terms of abuse are turned around - in this case it has been socially turned around."
> I'm a genius and I'd like you to change your behavior to accommodate my needs.
In education they call this "twice exceptional".