Make the paste. Drain the soaked chilies and blend them with the shallots, garlic, belacan and fresh chilies to a smooth paste. Add 2 to 3 tbsp water if the blender needs it.
Fry the sambal. Heat the oil in a wok or large pan over medium-low heat. Add the chopped onion, lemongrass and the chili paste. Fry for 8 to 10 minutes, stirring often, until the paste darkens and the oil separates. Here's how i make Tom Yum Paste Season. Add the tamarind paste, water, sugar and salt. Simmer for 2 minutes.
Add the squid. Turn the heat to medium-high. Add the squid. Stir for 2 to 3 minutes until the squid curls and turns white.
Taste and serve. Adjust the sugar, salt and tamarind. Serve hot with steamed rice.