Being the existence of two multiple ways to avoid rewriting the whole layer's numbering list (Writing with zeros after the number or using decimals), use an argument like that to create a new file with "-reparsed" appended that has the layer's prefixes corrected regarding the page number. This way, p0050, p3, p5.7 becomes p1, p3, p2.