I encountered the same with the line:
Queue<string> colors = new(new ColorEnumerator());
VS 17.13.6 proposes to replace it with
Queue<string> colors = [];
which is overtly wrong. Should be logged as a bug.
Suppressing it with #pragma warning disable IDE0306
.