How to brew install a specific version

Do I use brew install vagrant --version=2.2.18?

I had some issues with version 2.2.19 when I vagrant up. The last line shows:
/opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/hosts/darwin/cap/path.rb:20:in resolve_host_path’: uninitialized constant VagrantPlugins::HostDarwin::Cap::Version (NameError)`