libpcre2-8-0.dll Error in Windows 10 and 11: PCRE2 text search load errors

A tool works for plain text search but fails as soon as a regular-expression search is enabled.
What this DLL does
This PCRE2 Windows library supports its 8-bit code-unit regular-expression API.
Start with this check
Compare an ordinary documented regex with the original expression and record any load or syntax diagnostics.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Restore the publisher’s complete program or the matched PCRE2 build. For pattern errors, fix a copy using the tool’s syntax documentation.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Search a small test file with known matches and verify that the highlighted results match the expected lines.
For a related check, see libexpat-1.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2 Windows package manifest for pcre2.