Cases of wrong body parts being removed do happen, although these are extremely rare. Medical staff has strict steps to follow to prevent this from happening. These events are always tragic and the news media reports them broadly.
In the case of spine surgery, doctors use imaging to show the correct part before going ahead with the operation. Once the spine is cut open, special X-rays or imaging machines are used in the operating room. The doctor can see right away if the location is correct. There is also an operating microscope used during the operation to give the doctor a clear view inside the area.