Editing nvim session files to add more session parameters

I’m starting to setup my nvim . developm a plugin that monolithes functionality of different plugins as my current session manager, Shatur/neovim-session-manager doesn’t store data like project_type, venv_path and other things that will come to mind, now opening one of the session files it seem that it executes some vimrc config file and I was wondering werther nvim lua has a modules to tockenize / serialize the data or with lsp/treesitter or do you just go with good old regex editing those session files?