This was working until I applied 22H2 two days ago. 'Show all folders' doesn't help. 'Expand to open folder' is checked, but Explorer now simply ignores it. This is extremely annoying. I like to have the folder pane expanded to the folder I'm working in and don't want it to make autonomous collapse decisions.
Microsoft, are you listening?