Should I text my ex

I feel so lonely and I miss his company just seeing his name on the screen used to make me feel so much joy and I want that again there’s no one else in my phone that I want to talk to and honestly I don’t think it would be a bad idea but I’m not too sure. Help me.