How could I realize the same functionality of CodeMirror 5.x sql-hint in CodeMirror6

When I migrate from CodeMirror 5.x, I found this situation
CodeMirror 5.x with sql-hint

CodeMirror 6.x with autoComplete

keyword + “.” couldn’t highlight
DYNAMIC_PARAMS is my custom keyword

so how could I make “DYNAMIC_PARAMS.” highlight

I found this method can achieve the effect I wanted