I didn't know this was now built-in to macOS. I've been using Al Dente to halt charging at 75% until I need more.If you have Optimized Battery Charging turned on, charging will stop at 80% or so when hooked up to the Studio Display.
If battery charging is paused or on hold on your Mac - Apple Support
Use the battery status menu to resume charging if you need to have your Mac fully charged sooner.support.apple.com
Sometimes it takes a bit for the MacBook to learn your charging routine. In my case, it took a few weeks.
I found the optimized charging feature to be inconsistent at best and still use Al Dente.I didn't know this was now built-in to macOS. I've been using Al Dente to halt charging at 75% until I need more.