Price will come down and, in the meantime, compounding pharmacies are filling the gap in addressing stock shortages and high prices. Just be sure to use a reputable pharmacy if you decided to go that route.
The patent should expire in 20 years or so, and presumably there will be advancements in mechanisms to administer it/generics that bring down the price.
Semaglutide will fall out of patent protection in 2031 in the US, earlier in other countries. Drug patents do last 20 years (in the US), but the patent date is always some time before the medication is first sold. You also don't get a new patent for finding a new application of the same drug. So a diabetes treatment drug that's now used for weight loss without sufficient modification will expire at the same time as it originally would have even if it gets a new marketing name. Different formulations based on the original drug could get a new patent, though.