If these are subject to sun, I would protect both PEX and PVC from UV.
If this is indoors, I am not sure. There is this code thing where you now are not supposed to use pvc in inhabited indoors (I am not sure of the precise wording), which is a bit odd IMO, but that's the code. I think in practice PVC before the pressure tank is probably treated as OK. I am not a pro.