https://simakovshoes.blogspot.com/2023/02/using-regex-to-replace-only-last.html
Using Regex To Replace Only The Last Occurrence Of A Pattern With JS