Get text before and after caret in CodeEdit

Godot Version

4.4 dev 2

Question

I want to access the written code in a CodeEdit before and after the caret separately. I do see the method get_text_for_symbol_lookup in the CodeEdit documentation, but it doesn’t seem to contain that special character 0xFFFF when i print that text.

I am accessing the built in Godot Editor CodeEdit, but I have tried to achieve this within a normal scene and it didn’t work there either.

How can I accomplish this separated representation of the code in such a Node?