Refer to https://www.reddit.com/r/SQLServer/comments/10a87pn/does_anyone_know_approx_price_of_sql_server/
General pricing info is here: https://www.microsoft.com/en-us/sql-server/sql-server-2022-pricing
If you want to purchase perpetual licensing, talk to a reseller as there's a number of ways to purchase it. If you are want to purchase through volume licensing you can probably estimate roughly $15,000 per 2 core pack for enterprise and add another 25-30% for software assurance (which is valid for 2 years) if you're talking about new licensing. From then on you just need to renew the software assurance. If you are large enough for an enterprise agreement those numbers will be different.
If your organization is small it make more sense to buy licensing through the CSP program on a subscription basis.
1 year for 2 cores of SQL Enterprise through CSP is $6073.92
There's also monthly options for SQL Server 2022.
Overall these are very much "how long can you forecast your needs" and how big is your budget decisions.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin