Clean the mushrooms with a damp paper towel or soft brush to remove any dirt. Trim the ends and slice larger mushrooms into even pieces. Leave smaller mushrooms whole or cut them in half. Keeping the pieces similar in size helps them cook evenly.
In a small bowl, whisk together the soy sauce, oyster sauce, hoisin sauce, rice vinegar, brown sugar, cornstarch, water, black pepper, and red pepper flakes, if using. Stir until the cornstarch is fully dissolved and set aside.
Place a large wok or skillet over medium-high to high heat. Add the vegetable oil and half of the sesame oil. Once hot, add the mushrooms in a single layer. Avoid overcrowding the pan, cooking in batches if necessary.
Let the mushrooms cook undisturbed for 2–3 minutes to develop a golden-brown color. Stir and continue cooking for another 3–4 minutes until they release their moisture and become tender. Allow excess liquid to evaporate before adding the remaining ingredients.
Add the sliced onion, garlic, and grated ginger to the mushrooms. Stir fry for about 1 minute until fragrant. Add the red bell pepper and cook for another 2 minutes, keeping the vegetables slightly crisp.
Give the prepared sauce another quick stir, then pour it into the wok. Toss everything continuously for 1–2 minutes as the sauce bubbles and thickens into a glossy coating that clings to the mushrooms and vegetables.
Turn off the heat and drizzle over the remaining sesame oil. Add half of the sliced green onions and toss gently to combine.
Transfer the mushroom stir fry to a serving plate. Sprinkle with sesame seeds and the remaining green onions. Serve hot with steamed jasmine rice, fried rice, or noodles.