Finding this one horror movie

Hi! For the past days I’ve been trying to find this movie that I’ve watched back in 2018 on HBOMAX. It was sort of a thriller horror movie, and I think it was in a different language, maybe Spanish ( or another language, I can’t remember well ). All I remember is that the main character was a girl, that went to this high school ( or college ) and that she lived alone there. But also, I remember that her house was right by the train tracks so that was shown a lot of the time during the movie, but I think in the beginning or during the movie someone dies there and the main character sees this and now their spirit is now hunting her?? Also, I think I remember her being a lesbian and there were multiple scenes with her and another girl making out or something like that. And her bedroom would sometimes be red and the movie had sudden jump scares of the person who died in front of her. I’ve tried looking for it everywhere but it just won’t show up, please help me find it!!

Wild guess, but maybe…