Do you have a pic of what it looks like ? Is it metric, standard, machine screw, self tapping, coarse or fine thread... etc.
Once you know what kind it is you pull a search for a chart on it like:
ANSI
https://www.engineersedge.com/thread_strength/internal_screw_threads_chart.htm
Metric
https://amesweb.info/Screws/metric-external-thread-dimensions-chart.aspx
A set of thread pitch gauges wouldn't hurt
Are you wanting to 3D print a screw ?
You can buy plastic screws, bolts and nuts
https://us.misumi-ec.com/vona2/mech_screw/M3301000000/M3301160000/?listDisplay=mc-photo&msclkid=8b6f01a7321712d305105e02a6f30dab&utm_source=bing&utm_medium=cpc&utm_campaign=FA - Bolts%2FFasteners%2FScrews&utm_term=%2Bplastic %2Bscrews&utm_content=Screws - Plastic