Jacob took the stone (ʼben) and “set it up as a pillar (massebah) and poured oil on the top of it” (Genesis 28:18). This standing stone was dedicated to Yahweh, therefore the use of a stone as a massebah was not forbidden.
Jacob's use of a stone as a massebah wasn't forbidden because it was dedicated to Yahweh.