macOS Ventura has stopped my smtp server (timeout) since version 13.2.1 (22D68)

My Electron app is no longer able to send emails locally to my SMTP server at port 1025 (I'm using Mailhog). I'm getting a timeout all of a sudden, the code wasn't changed at all. The only difference is that I installed the newest update of macOS Venture on my Mac Mini yesterday.

I've followed the instructions in https://kinsta.com/blog/mailhog/ to reinstall Mailhog via Brew, restarted the service but when I come to the example given to test mailhog it fails with:

-bash: mhsendmail: command not found

I've noticed that Apple is now showing a popup for “Background Items Added”. This is a new feature they added, might be it’s the culprit though it’s turned on:

Can this be the cause why the SMTP is timing out?

Everything was working fine for years until this update yesterday.

Thanks in advance!