I found the problem.
For many years, vim had been unable to properly set the value of
'ttymouse' for some of the terminals I used. Consequently, I added
some code to my vimrc to use the value of the termresponse to
determine the terminal type and to select a value of 'ttymouse' that
seemed to work well with that terminal. A value that often worked
well was "xterm2".
When patch 9.0.1168 was added (on January 10, 2023), vim's method of
determining the value of 'ttymouse' and the control sequences to
enable and disable the mouse changed. The control sequences for
ttymouse=xterm2 were no longer correct for a Cygwin mintty nor for
a GNOME Terminal, at least not when vim had chosen ttymouse=sgr.
The result was the odd behavior I observed.
My current solution is to use my method for determining the value of
'ttymouse' when the patch level is less than 9.0.1168 and accept the
value chosen by vim otherwise.
Regards,
Gary