The nvim-treesitter-sexp package generates many errors when used with Neovim 0.11 that were not present in Neovim 0.10.x reelases.
The bug is attributed to the treesitter changes in Neovim which have not been accommodated in the nvim-treesitter-sexp plugin as yet.
Lazy.nvim package manager enabled key requires a boolean result. A lua function can be used to check the version of Neovim running. The lua function will return 0 for false and 1 for true, comparing the result with either 1 or 0 will give the corresponding boolian value.
Add a condition that nvim-treesitter-sexp only be enabled if Neovim is not version 0.11.