Context menu item disappears in Safari Extension with Manifest v3

I'm trying to convert an existing Chrome Extension to Safari Web Extension.

Immediately after convert, xcode opens and I build the project. Everything looks perfect in Safari: the popup works fine, the context menu item is there, options are there.

The moment I restart Safari, the context menu item disappears and service worker is not loaded.

My Manifest v3:

"background": {
    "service_worker": "js/background.js"
  },
  "permissions": [
    "contextMenus",
    "activeTab",
    "storage"
  ],

My background script:

chrome.contextMenus.removeAll(() => {
		chrome.contextMenus.create(properties);
	});
Context menu item disappears in Safari Extension with Manifest v3
 
 
Q