does this mean a panama bank account opened by a foreigner will be reported to his home country, but a panama bank account opened as a panama resident will not?
If you are Panama resident CRS will report to Panama but even if it's reported to passport country who cares since you should not be tax resident there anymore.