I started getting that after mysteriously getting the moisture detected error which went away on its own ( you can read about it under my name)
And now I have the same issue with the charging like you.
No fast charging but charges if I flip the cable.
Only recently couple of days ago it seems to be fast charging again on it own.
So maybe just keep at it and it will sort itself out.
Mine is S21 ultra though.
Follow Me, like my posts and Mark as Solution if I helped solve your Problems.