Udim and Materials layers UE5

Just a question any of you guys know if the layers mask system works with UDIM for the mask in unreal engine 5
I am looking to do a complex layer system structure by layers painting the mask with substance painter udim system.
like paragon characters but with udim in the masks.

Thanks ahead