To reproduce, paste the following command in chat: /clear @a[ stone. Note that this behavior is different from other tab suggestion boxes - those disappear if you move on to the next argument. The attached screenshots demonstrate this difference.
18w06a only partially fixed this issue. /clear @ stone still is affected. Also affected now is /recipe take @e *.
In the screenshot I added, it shows that it isn't just the closing square bracket that is the issue; it is also an issue with the suggestions for the @ selector not leaving as well.