Poke the squash several times with a fork and put it in the oven for 20 minutes to soften.
Cut the squash in half and place face down on a baking sheet, then roast for 30 minutes until the squash is tender throughout.
While the squash is cooking, make the pad Thai sauce. Add 1 tablespoon of oil to a small pot and bring the heat to medium.
Add the shallot and 2 cloves of garlic and sauté for 5 minutes.
Reduce the heat to low and add the tamarind, fish sauce, maple syrup, and rice vinegar. Stir for 5 minutes, then keep on a low simmer until ready to use.
Toss the tofu with 1 tablespoon of oil and the soy sauce.
Add 1 tablespoon of oil to a non-stick frying pan and bring the heat to medium.
Add the tofu and cook for 10 minutes before stirring, then stir and cook for 10 more minutes.
Add the remaining oil to a large frying pan and bring the heat to medium high.
Add the onions and remaining garlic and cook for 5 minutes.
Add the red pepper and carrots and cook for 3 more minutes.
When the squash is done cooking, let it cool for 10 minutes, then remove, and discard the seeds.
With a fork, shred the squash into strands and add it to the pan with the vegetables.
Add the tofu and sauce to the pan and warm through on simmer for 10 minutes.
Top with scallions, peanuts, cilantro, and optional lime before serving.