It works with the following :
"vim.visualModeKeyBindings": [ { "before": ["$"], "after": ["g", "_"] }, ],