\w is ASCII-only even with the u flag, so "port: 8080.β" was treated as a sentence-ending port. Use Unicode letter and number classes for the port boundary checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>