We're experience similar issues within MacOS on Safari v17.5. It seems that any browser.runtime.sendMessage call that awaits a response will lock up the background script.
Beyond this, we're seeing that if the extension popup is opened, the pending sendMessage calls resolve and receive the sendResponse returned by the browser.runtime.onMessage listener within the background script.