Trim the tops from the eggplants and cut them into even 1-inch cubes. Put the cubes in a colander, sprinkle with the kosher salt, and toss to coat. Let them sit for 30 minutes, until dark beads of liquid form on the surface.
Rinse the cubes thoroughly under cold running water, then spread them on a clean kitchen towel and pat very dry, pressing down firmly.
Heat the oven to 425 degrees F and line a large, rimmed baking sheet with parchment paper. Put the dry cubes in a large bowl, pour over the olive oil, add the sliced garlic, smoked paprika, oregano, cumin, and black pepper, and toss until every piece is coated. Spread in a single layer on the baking sheet.
Roast 20 to 25 minutes, turning the cubes once halfway through, until the edges are deep golden and caramelized and the centres are creamy and fork-tender.
Squeeze about 1 tablespoon of lemon juice over the hot eggplant, sprinkle with the chopped parsley and crumbled feta, if using, and toss gently. Taste and add a pinch more salt only if needed. Serve warm or at room temperature.