So I am trying to reproduce your issue.
Here’s the custom keyword’s content and the package structure.
Here’s the test case, I simplified some code since the important point here is the custom keyword is being able to be called correctly.
Here’s the result of executing the test. It is successfully executed.
Can you tell me if any difference stands out to you ?
One more thing to try: In your test case, right-click anywhere to open a context and menu and choose Source > Organize Imports. I think it’s related in some ways, but I can’t think of a concrete relation yet, but please do try.