Multiselect search and drilldown menu

Hey there,

Has somebody done a multiselect drilldown menu? I want to have a field which is searchable where you can type in it and filter based on the categories you have in the dropdown, but once I just click on a category they it shows me what I can pick from it.

I made a simple Figma prototype of the flow that I am after