What kind of screw is this? It's meant to be paired with a grommet
This is referred to as a "shoulder screw" because the wide section above the threads stops it from going in any further.  They can be used so that soft or brittle materials like plastic of a certain thickness are held in place without being pinched or over-tightened.

I've also seen these used as a type of "standoff" that you could hook a spring or cable onto, but the basic term "shoulder screw" is what will help the most.