magento2 – Hide products when customer add specific product to the cart Magento 2

is there any extension or a way to restrict products in Magento 2 by SKU?

ex: I have products AA1001, AA1002, BB1001, BB1002.

When a customer adds AA1001 to the cart straightaway the extension will hide BB1001, BB1002, and keep AA1002.

Is it possible?

Many Thanks