How to create a block for related products based on their taxonomy term?

I want to create a block for related products.. all the solutions I found are not working on drupal 8/9 with commerce 2 , for a content you can just specify a contextual filter for (has taxonomy term) but for products that’s not an available option .. is there anyway to accomplish this ?