Error: The value for the @Directory parameter is not compatible with the Ola backup script

I just installed the Ola backup scripts in a new installation of SQL 2017 and I get this error: the value of the @Directory parameter is not compatible. The directory that I used exists and the registry is written to give me the error.