Is PEX allowed as TPR Piping material?
Only if it’s strapped, due to it’s not being rigid.
Your local AHJ may have a differing opinion!
Not allowed in Illinois
For the most part PEX is an allowable material for Temperature and Pressure Relief Piping unless the local jurisdiction says otherwise.