Ola Hallengren's index rebuiuld script - how to exclude more than one object?
Yes that looks like the correct syntax (except you have two '--' for your last index name? :-) )

Also, when you are writing your script for these indexes only, you do not need the '-' before the index name.

more info here: https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html