This Language Server can do it. It uses tidy wich is a Robot Framework built in tool.
tidy
When LSP is running, you can do Code -> Reformat File
Code -> Reformat File