This is ReDos checking for .NET C#.
Based on Backtracking in .NET Regular Expressions | Microsoft Learn and WEB+BDB PRESS Vol.130.
In C#, Regex engine implement with VM (NFA) so develop has responsibility for it's quality of matching.
.NET 7 introduce opt-in DFA Regex engine with
See [Regular Expression behavior | Microsoft Learn)[https://learn.microsoft.com/en-us/dotnet/standard/base-types/details-of-regular-expression-behavior] for why .NET Regex is using NFA.