I want to show categories of items also want to show the brands and flavors of item according to the parent it has.
Go to Store -> Attributes -> Products
Open your required attribute
Open Storefront Properties tab
Select "Yes" in Use in Layered Navigation option.
This should display your attribute on product list filters