How to execute sync/copy or sync/sync with --dry-run option via POST request to the API

Tip:

If using core/command with sync --dry-run, then you can quite easily scan the output for file names with regex present in most programming languages. (When knowing regex and the print statements used in the log)

I used regex101.com to help me make this:
https://forum.rclone.org/t/how-to-extract-file-names-after-move-command-is-successfully-done/33725/3

I guess the regex approach is considerable faster than first parsing the entire json into variables and then scanning for the desired fields and content. Would you like help to make one for --dry-run? using plain or json output? What programming language are you using? What IDE?