Hi Alkey
I tested your formula and it seems to me that is not correct. Can you test again?
I test another array formula that is too short
Formula: copy to clipboard
=MAX(IFERROR(MID(A1,FIND("RX",A1)+2,{4,3,2,1})*{1,1,1,1},0))

Best regards