Someone recently left my team who was a rock star in his own mind. He claimed to know it all, and would go on and on about how everyone else should do their job. The reality was that he didn’t understand the complicities of the issues, any time a team was involved he would try to delegate everything away, anytime there was an issue he was the first to finger point, any time something was difficult he would quit while making excuses that it was not his fault, he only knew one language/framework and saw no reason why anything else would ever be needed/wanted… I could go on.
I’m sure he might sound great in an interview, as he loved to talk himself up and talk about how amazing he was and how stupid everyone else is. In the real world, he was a toxin within our team and no one was sad when he left.
I’m not sure how one would separate a true “rock star” from a delusional wannabe in an interview, other than having a well tuned BS meter.