How to filter product collection with configurable product attributes?

I want to custom filter in the product collection configurable product from child product attribute in Magento 2 ?