I found no definitive supporting documentation that this is indeed a bug but given that the problem didn’t exist in Ventura but manifested in Sonoma, it’s not unreasonable to believe that Apple broke something.
Se eSee this Mac Rumors forum post we they were apparently tweaking things on the Manu Bar early on.
The best thing to do is submit feedback to Apple: https://www.apple.com/feedback/macos.html