Reproduction steps:
1. Open the attached "repro_IN-94958" project
2. Open the Build Profiles ("File -> Build Profiles")
3. Change the platform to "Web"
4. Press the "Build And Run" button
5. Once the Player opens, observe it
Expected result: "Assets/Scenes/Typing4PG.unity" Scene loads
Actual result: "Assets/Scenes/Typing4PG.unity" Scene fails to load as the loading bar is stuck in the beginning and the browser console shows the "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'match')" error
Reproducible with: 6000.0.35f1, 6000.0.39f1, 6000.1.0b2, 6000.1.0b7, 6000.2.0a4
Not reproducible with: 2022.3.58f1, 6000.0.34f1, 6000.1.0b1
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested