*** settings ***
Library RequestsLibrary
Library Collections
Library OperatingSystem
Library SeleniumLibrary
*** Variables ***
${username} XXXXXX
${password}
You must follow space separated format.
In following code line (and others) you seem to only use 1 space between variable and keyword ${body}= Create Dictionary
.
That's why robot can not parse the code correctly and the error is raised.
Expand that code to use at least 2 space separation.
You should try the code like this.
${body}= Create Dictionary username=${username} password=${password}
And of course revise rest of the code accordingly.
I also recommend you study the user guide.
It contains a lot of useful information.