Socket doesn't exist in construction script?

I’m trying to simply get and attach a static mesh component to a scene component using a socket. I need it to be set up in editor, but when I use the construction script it doesn’t work. Some quick debugging led me to the conclusion that the socket doesn’t exist at that point which doesn’t really make sense. The static mesh is recognized (I can print the display name) but when I run the node “Does Socket Exist”, it returns false. I tried multiple static meshes and am getting the same result.

Is this how sockets work or is this a bug?

image

image

image