support square brackets as key name

The use case here is similar to the way params supports hash objects by doing

    params[hsh][key] = value
    params[hsh][key2] = value2

I would like to do something similar using an .env file. The format is also supported by heroku, i.e. I can create a keyname containing square-brackets using their heroku config:set command.