The emotion is called nostalgia (from Greek nostos “return home” + algos “pain”). It’s a bittersweet longing for a place, time, or community from the past. While often pleasant—evoking warm memories—it can also bring sadness or dislocation.
Psychologists view nostalgia as a resource for identity continuity and emotional regulation.