I want to make a pegboard to hang tools in my workshop, what kind of wood do I need?

Use a perforated board. If you are planning to hang heavy items, I suggest a 1/4” panel.