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 Great Expectations Blogs

Please provide any examples or pointers to solve this.