Sure, take the following example:

The first compose action is just a container for example JSON, which is:
{
"Country": "United Kingdom",
"SerialNo\r": "\"215211291266\"\r"
}
The action Compose 2 removes only the \r elements and produces output like this:
{
"Country": "United Kingdom",
"SerialNo": "\"215211291266\""
}
The code for Compose 2 is:
json(replace(string(outputs('Compose')), '\r', ''))
The action Compose 3 removes both the \r and the escaped quote characters you have in your JSON and produces the output:
{
"Country": "United Kingdom",
"SerialNo": "215211291266"
}
The code for Compose 3 is:
json(replace(replace(string(outputs('Compose')), '\r', ''), '\"', ''))
In both cases, the JSON is first converted to a string with the string function, then replace is used to remove the elements which are to be removed. Then it is converted back to JSON format with the json expression.
Does that help?
Blog: tachytelic.net
YouTube: https://www.youtube.com/c/PaulieM/videos
If I answered your question, please accept it as a solution 😘