Original URL:
borrowinfo.page?borrow_id=2017121500000000000000005173
Target URL:
/invest/info?borrowId=2017121500000000000000005173
if ($request_uri ~* "^/borrowinfo.page/?borrow_id=(/d+)$") {
set $myarg $1;
rewrite .* https://www.domain.com/invest/info?borrowId=$myarg? permanent;
}

Note: $1 cannot be used directly, otherwise the rewrite will not take effect;
Replace the domain name with your own;