Using LOAD CSV for Import - Introduction to Neo4j 4.x Series

https://neo4j.com/graphacademy/training-intro-40/17-using-load-csv-import/#_guided_exercise_creating_a_new_database

I am trying to do the steps in the mentioned URL but am getting the below error:
Neo.ClientError.Statement.SyntaxError: Invalid input 'O': expected whitespace, comment, IF or FOR (line 1, column 30 (offset: 29))
"CREATE INDEX MovieTitleIndex ON (m:Movie) FOR (m.title)"
Can someone please guide me?

what version of Neo4j.
If 4.2 the correct syntax is

CREATE INDEX MovieTitleIndex FOR (n:Movie)
ON (n.title);

https://neo4j.com/docs/cypher-manual/current/administration/indexes-for-search-performance/#administration-indexes-create-a-single-property-index