I see him, but not now; I behold him, but not near; a star shall tread from Yaakov, and a scepter shall rise from Israel, and shall smite the corners of Moav and undermine all the sons of Sheth.
Torah Temimah: Yerushalmi Taanis 4:5 — R. Akiva expounded the star as Kozeba.
Sefaria — Yerushalmi Taanis 4:5
English: It was taught: R. Akiva would expound, “A star shall tread from Yaakov” — Kozeba shall tread from Yaakov.
Historical application of the star prophecy to a contemporary figure.
The verse was read in its generation as pointing to Bar Kozeba — the star image carried messianic expectation.