Hi! Make sure both charger plug and cable are 25W; otherwise, it'll charge slowly.
Now, for the "not charging" issue, since the chargers work on your S23, I'd say it's the phone itself. I would try cleaning the charging slot. Personally, I like using compressed air and or a soft bud with isopropyl alcohol. *Do NOT blow into the slot with your mouth as this can cause damage. Do NOT use a hard object to clear the port, as you may damage the slot. If still nothing you may need a repair