I needed to take night sky pictures yesterday with long shutters. At the time I didnt mind the people on it since I was going to crop them out if needed, but now I think it would be nice to keep the way it is but removing the people/ghosts.

How can I do that? I tried photoshop generative fill and lightroom heal, but both of them looked awful. Not sure how to start.