Real estate investment alone is not sufficient to obtain permanent residence. To obtain permanent residence, you must either apply under the Entrepreneurs programme, by acquiring a business for example, or under the Investors programme (which is due to reopen at the end of 2021), by investing a certain amount with the government. You can find more information, depending on your profile, on this page dedicated to investors.