The way the filter below works is when selecting a checkbox and then typing, the selection is being erased. I would like to keep the selections and present them at some part of the filter, in addition to allowing the user to remove a selection. Is there a best practice for that?
You can keep the selected options as removable tags right below the search field or below the list of options.
I have seen many e-commerce sites follow this pattern when filtering products.
See this example from a popular e-commerce site called Myntra from India:
You can either click the close icon on the individual tag or uncheck from the list to remove these tags.