Heat a wok or skillet over medium-high heat. Add the oil and heat for 30 seconds. Add the scallions, garlic, and pepper flakes, if using, and cook until fragrant, about 15 seconds. Add the remaining ingredients and bring to a boil. Cook, stirring occasionally, until the sauce thickens slightly, about 1 1/2 minutes. Pour into a bowl.