If the red pex is layed in a grid patter it likely is for heat. so the post should be accurate… according to my research there should be 2" of rigid foam insulation…
As best I can tell it should be thusly:
Yes it can be encased in a slab. It must be protected with a nonmetallic sleeve at the penetration point.
On top of the compacted earth or sand, install a vapor barrier.
Lay down at least 2″ of rigid foam insulation.
Install the wire mesh or rebar for the concrete slab.
Attach the tubing to the wire mesh or rebar using plastic zip ties.
Do not allow joints within the slab, use a continuous length