Should I reach out to an old friend?

A few years back I made an online friend and we grew very close. He was basically my best friend for 2 years. Our friendship was occasionally difficult. Feelings were involved at one point but they diminished and we were just friends for the last year.

About 8 months ago I got frustrated at him and created distance. I didn't like the way he was interacting with me. I don't mean he was mean or anything, he was never mean, but he seemed to only want to talk about himself. I was going through things with sick family members and struggling with mental health and he never could ask how I was and just would ramble on about his life and dismiss me when I'd talk about my own.

I got frustrated, told him that and ultimately we stopped talking after an argument.

I do miss him dearly. He was my closest friend for a while. I've been thinking of reaching out even if it means he just rambles about himself. Ultimately, it is better for me to have a distant friend than no friends at all.

Should I reach out to him? And if so, what should I say?