When any real property is sold on contract by the United States of America, the state, any county or municipality, or any federally recognized Indian tribe, and the contract expresses or implies that the vendee is entitled to the possession, use, benefits[,] and profits thereof and therefrom so long as the vendee complies with the terms of the contract, it is deemed that the vendor retains title merely as security for the fulfillment of the contract, and the property must be assessed and taxed in the same manner as other similar property in private ownership is taxed, and the tax roll must contain, opposite the description of the property so assessed the following notation: "Subject to title remaining in the vendor" or other notation of similar significance. No foreclosure for delinquent taxes nor any deed issued pursuant thereto may extinguish or otherwise affect the title of the vendor. In any case under former law where the contract and not the property was taxed no deed of the property described in such contract may ever be executed and delivered by the state or any county or municipality until all taxes assessed against such contract and local assessments assessed against the land described thereon are fully paid.