Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66
Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-10 13:42, hash: rB51ac411ce80c
Short description of error
Python UILayout.prop_search() is broken. Property values are marked as invalid despite existing within the searched list.
Exact steps for others to reproduce the error
Open the Blend file and run the script.
Go to the 3D view->Panels (N)->BUG. Note the property is highlighted red.
Use the UI to select "Text" instead.
The property is no longer red, but it's wrong now. The property has been set to " Text".