This sounds very much like the same issue I had. If you're in Europe then the charging lock solenoid fails to engage properly sending a message that it can't charge, LED light surround flashes red, etc. In the US the locking mechanism is slightly different. More details here: viewtopic.php?f=15&t=17186
There's someone on the EV forum here in the UK with a 2020 REx with sounds like a very similar issue, but it occurs if car left in direct sunlight, I know, go figure!
I've read that with the charge port disassembled, it's worth enlarging the hole slightly that the locking solenoid actuates through, you can even lightly lube with a marine grease, that shouldn't do any harm.
Anyway in my experience it's potential Achilles heel part but it can leave you high and dry if the car fails to charge.
If you check out Hubauer Shop (Germany), have the last 7 digits of your VIN, then you can see correct part. Also watch the video.
2015 i3 REx, 60ah, solar orange. Reversing camera, leather interior, sunroof, park assist, professional navigation.