Heat oil in a large pot. Add shallot and white scallion parts, cooking until translucent.
Add mushrooms, cook until tender, then add shrimp and cook until pink.
Stir in ginger, garlic, and chili paste. Cook for 1 minute until fragrant.
Pour in soy sauce, rice vinegar, and broth. Simmer 10 minutes.
Mix cornstarch and water, stir into soup, and simmer 8–10 minutes.
Remove from heat and slowly drizzle in egg while stirring.
Taste, adjust salt, pepper, and garnish before serving warm.
