I am facing the same issue in my M1 MacBook Pro after installing the Sonoma. However, it charged perfectly with USB C ports. Moreover, I restarted the laptop plugging the charging cable and it charged until I logged in. After login, the charger cable showed green and red lights consecutively on an interval of 10 seconds but charging was stopped.