Zend certified PHP/Magento developer

Magento 2: Show disabled subcategory products in parent category

I’m using Magento 2.3.4 and I have an anchor parent category that has some disabled subcategories. When I disabled these subcategories, all the subcategory products are not showing in the parent category page, but if i enable it, it will show just fine. I need the subcategories to be disabled, but the products still showing in parent category page.
Is there a way to achieve this?

Side note: I see that the products are still searchable and available when the subcategory is disabled, but the products are not showing in the parent category.