Our 2021 has the same thing, although not quite as advanced. I knew to look for it because I noticed the same on our 2010 4R earlier this year. On the 4R, Toyota had installed a thin film between the trim and the paint, which eventually wore through and allowed the trim to crack the paint, causing a good amount of rust to form underneath the trim. I sanded that down, taped off the sanded area, sprayed rust-converter extensively, and added a strip of thick, clear adhesive tape before reinstalling the trim piece.
I didn't care too much about appearances on the 4R since it's now just a car the kids drive, but I've been debating having the LC professionally done so that the door sill looks correct. Either way, I will apply the same clear tape once before reinstalling the trim piece. Seems like that would be a good preventative measure for those in salted areas that don't yet have this issue.