Photos JPEG Export Keywords
The tags are stored not in EXIF data but in IPTC tags. I was able to view and modify them using the iptc command, which uses libiptcdata.

Viewing the tags:

$ iptc test.jpg


Adding a tag:

$ iptc -a Keywords -v testing test.jpg