Studying topological phases of matter in reduced dimensions under the scanning tunneling microscope