convert a dot-path to key-path.

import { assertEquals } from "jsr:@std/assert"

const
my_dotpath = "kill.your.self.2abc.1.tasukete",
my_keypath = dotPathToKeyPath(my_dotpath)

assertEquals(my_keypath, ["kill", "your", "self", "2abc", 1, "tasukete"])