Urges will pass just hang in there. Try to exercise move your body get outside if possible. Use the pomodoro technique to do other activities like learning to code. Do it for 30 minutes and then take a non-digital break like going to get a cup of tea.
This is a new experience for you, be patient, it gets better.
Welcome! Grateful you have joined us. Today you begin turning things around so that when you wake up on your 46th birthday you are immensely proud of yourself instead. ?
I used to smoke pot to cure boredom as well. Identifying that I smoked pot just for "variety" helped me change - instead I could go to the gym or go for a run or something to feel different. Watch this video: https://www.youtube.com/watch?v=DbMjSLiEXj0
Gaming definitely numbs, and one of the transitions you make after you quit is beginning to feel again. That can be a bit intense and confronting but also very freeing as you learn to navigate your emotions. The emotions were there all along, you were just avoiding them. @giblets has come far in this process, maybe he has some advice.