Hello,
Attributes could not be sold out, only product variations could be sold out. Do you get products that include variations in the list that are sold out https://prnt.sc/12ky4of ? Provide me screenshot of the product that includes sold-out variation but still appears in the filter results.
Regards