Currently, the behavior of double-clicking to select text in Notepad on Windows 11 has changed compared to Windows 10. In Windows 11, double-clicking on text stops at punctuation or numbers, which means that selections like abc.def will only select abc, and 123.45 will only select 123. Unfortunately, there is no option available in the current version of Windows 11 Notepad to revert this behavior to include punctuation and numbers in the selection as it was in Windows 10.
If this feature is important for your workflow, you might consider providing feedback to Microsoft through the Windows Feedback Hub, as user feedback can influence future updates and features in Windows applications.
References: