Work from home has basically fixed this for me. Disable your works preferred messenger notifications and set a few times during the day that you will check them. Same goes for email.
I even tried not having Teams running when I was 'in the zone' only to end up being called on the phone to check 'whether I was working today'... :(
You can at least set it to flash only once (better than constant blinking).
People calling you on the phone is another story and part of the company culture I believe. In my case I don't get phone calls from work, only teams calls and those are always scheduled in advance.