Not that I am an expert or believe in ghosts,
But your question includes the inevitable assumption that identity is interchangeable and equal with ego. Your question would only make sense if and when it is for certain that ego and identity is hundred percent correlated. Like I said, I’m not an expert so please inform me in case these two things are indeed the same.