PERM - I-140 - stay in the USA

Hello Anil,
My H1b is Maxing out on July 22 2021, I got my Prevailing wage approved today (5th Jan) and Ad process is started ( minimum 60 days). My PERM will be filed after that ( approximately march 2 nd week or so). In case if my PERM Approves on June end, Am i good to apply I-140 in premium and stay in country even if i cross the maxout date or is there any alternate solution in this case?

You would need an approved i140 to stay in the country.