Except_file_to_exist not working

I am trying to use the except_file_to_exist via FileDataAsset and it’s failing as this expectation is not loaded into registry.

Failed at
registry.py

_registered_expectation.get(expectation_name)

I followed the blog https://greatexpectations.io/blog/welcome-to-great-expectations-filedataasset/

Please provide any examples or pointers to solve this.