in ecs_logging/_utils.py [0:0]
def de_dot(dot_string: str, msg: Any) -> Dict[str, Any]:
"""Turn value and dotted string key into a nested dictionary"""
arr = dot_string.split(".")
ret = {arr[-1]: msg}
for i in range(len(arr) - 2, -1, -1):
ret = {arr[i]: ret}
return ret