BF - It takes time. I too have dreams about my ex, not happy ones either. He was a part of your life for a long time, I think it is normal for anyone to still remember and have dreams and thoughts about any type of loss.
Getting out would help, meeting new people. I know it's not easy.
Sending big hugs, Nikko