The gringo trail - getting there and back

I’m booking a qantas bus class RTW ticket in about mid May to mid Aug 2027

I have some flights I want that will get me into Asia, spend about a month there and then ideally around early to mid June I want to fly North East Mexico (probably Cancun or Tulum) then make my way down to Panama

I can also do this Central American part the other way around.

I can get from BKK to Amman (i want to see Petra etc for a few days) or similar fairly easily to Cancun but getting home I’m drawing blanks (around mid Aug)

I want to avoid high carrier charges if possible

I can’t find anything from Cancun, Mexico or the States to get back to Australia

I can see some really weird ways to get from Panama to Europe (Madrid mostly, and only in economy) and then back to Asia

I have paid for one month of Gyoza and keep running out of search’s per day.

Ideally would like to stay on one world, and not use more points than the RTW cap.
Melbourne is the final destination but don’t mind if I land in another city

I have seen that there are occasionally some flights that are ticketed all the way from Europe through to places like Brisbane but when I do searches that don’t include Brisbane they don’t show up and I think those are called something like linked tickets? I don’t understand how that really works but I guess I could always try and just not catch that final leg as long as I can get my bags so I’m open to any tricks tips or ideas that anyone could suggest pretty please.

Recap.
I have flights from Mel-KUL-BKK-AMM
I can find ways from AMM to JFK (AMM-london-JFK)
JFK to Cancun or Panama Im having trouble with…
And Panama or Cancun to Melbourne ive got nothing so far