Okay, so let’s go step by step with an example:
1) I have a variable product with different sizes. I have disabled some sizes (when they come back they will be available so I leave the stock on available). That size no longer appears on the site when it’s disable on the product page. Everything is ok here.
https://i.imgur.com/AVypxPN.png
2) I go to the shop and in the filters I select size 34.5. The previous product continues to appear despite the fact that I have deactivated it.
https://i.imgur.com/lmSDHWS.png
I understood that this occurs because the variation appears to be available, however in the filters one should add in addition to the check on availability anhce that the variation is active