I use Hidden Bar (https://github.com/dwarvesf/hidden) for this. It works well enough despite not being updated in a while, though there is a bit of jank. Just tried out Ice and it seems to be a nice, lower jank replacement!
I stopped using Bartender (because of the recent news) and noticed that Hidden Bar was last updated in Jan 2022 and Dozer in 2019. Neither have a way (or plan to have something) to handle the notch.
Ice still lacks some features, but the developer is working on it and eventually it will be able to work around the notch (if you have too many icons, they'll be hidden by the notch... not sure what Apple was thinking). That's why I picked Ice.
It's a minor nit, but I like that Ice doesn't force me to have extra icons in the bar. Unless I missed a setting, Hidden Bar required having < and | icons for separators