How to keep region number after 'extractborder'

Dear all,

I use the command ‘extractborder’ to remesh, but the region number changes, is there a method to keep the region number.
This is my code
try3.edp (1.4 KB)
The initial region number is 0 1 3,
but after remeshing, it becomes 0 1 2