Hi @zimma71 Are you using a compatible Samsung charger, just check that there is no apparent issue with the charger.
can you check if there is any debris in the charger in case that is the issue. if still no resolution idea to charge in safe Mode and/or wipe the cache partition:
Now, you should see Safe mode written at the bottom left corner of the screen. If you phone charging in safe mode, it means some third-party app was the trouble maker.
Note: To exit Safe mode, simply restart the device.
Wipe cache partition:
Press the Power key to restart the device
see some more information here https://rcuk.com/what-to-do-if-your-samsung-smartphone-is-charging-slowly-or-not-at-all/
I do not work for Samsung or make Samsung Products but provide independent advice and valuable contributions.
My Device- S21 Ultra 5G ( SM-998B/DS ) CSC= BTU , 12GB/256GB
One Ui 5.0,Android 13 .