Could it be that two things are being confused here? The original poster is referring to the negative certificate according to § 24 Baugesetzbuch, which must be available for the re-registration of the land register to the new owner. The municipality may only exercise this pre-emption right under very strict conditions and enter into the already concluded purchase contract between the seller and the actual buyer. Schwabe23's post sounds like the claim of the municipality as the seller of the property, which is often agreed upon and secured in the land register with a repurchase annotation, for the retransfer of ownership if, for example, the property is not developed within a certain period.