Add text before and after a timestamp

it seems not working, do I need some special settings?

the result for me is ‘(timestamp) [https://www.xxxxx.com=1]’, the original timestamp was replaced by ‘1’.

Only find this post, but my case is more complicated.

I would like an action, first let me input ‘url’,
then find all timestamps,
then combine these strings, ‘[this post](’ + ‘url’ + ‘#=’ + ‘timestamp’ +‘]’,
then replace every timestamps with combined strings.

I try to use GPT to write the script but too difficult for me to adjust the code, could someone help?