the text provided as done has the risk, that a in regex101 working pattern maybe will fail in UiPath. Providing samples as text files is more reliable.
Kindly note that a dollar sign will always be escaped with backslash, otherwise we tell the pattern end of line
we made the pattern ungreedy with +? and challenged it with more sample dollar amounts at the end to check if it will be catched or not